summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-07-25 16:15:27 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-09-02 18:16:49 +0200
commitd5aa9c3b23f6c9b5ff0b6af11ff6d6827c5f24bd (patch)
tree7459b7b96eb233133c18f3fa53d2c76cff6aba68 /basic
parentremove strange added Invalidate bits (diff)
downloadcore-d5aa9c3b23f6c9b5ff0b6af11ff6d6827c5f24bd.tar.gz
core-d5aa9c3b23f6c9b5ff0b6af11ff6d6827c5f24bd.zip
GSOC work, disable QuickSelectionEngine+ListBox navigation modification
Added a function to disable QuickSelectionEngine in ListBox, beacuse it's not needed. ListBox navigation changed: it is not hiding/showing entries, instead of it, jumps to the longest match without filtering. Arrow behavior remains the same. Change-Id: I8982c280f20929c74f9630cbaa95010820d2e234
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/codecompletecache.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/basic/source/classes/codecompletecache.cxx b/basic/source/classes/codecompletecache.cxx
index cb5d4dbff4f7..952e4ee7538a 100644
--- a/basic/source/classes/codecompletecache.cxx
+++ b/basic/source/classes/codecompletecache.cxx
@@ -125,11 +125,8 @@ OUString CodeCompleteDataCache::GetVarType( const OUString& sVarName )
for( CodeCompleteVarScopes::const_iterator aIt = aVarScopes.begin(); aIt != aVarScopes.end(); ++aIt )
{
CodeCompleteVarTypes aTypes = aIt->second;
- for( CodeCompleteVarTypes::const_iterator aOtherIt = aTypes.begin(); aOtherIt != aTypes.end(); ++aOtherIt )
- {
- if( aOtherIt->first == sVarName )
- return aOtherIt->second;
- }
+ if( aTypes[sVarName] != OUString("") )
+ return aTypes[sVarName];
}
//not a local, search global scope
for( CodeCompleteVarTypes::const_iterator aIt = aGlobalVars.begin(); aIt != aGlobalVars.end(); ++aIt )