diff options
author | David Tardon <dtardon@redhat.com> | 2015-03-01 16:54:57 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-03-01 17:33:58 +0100 |
commit | 04814fcc3bd1045d76b27c225aa7baf892ac3410 (patch) | |
tree | faee0d283ccf5919fe0dd2abd9cbd1e60cf2e3ca /basic | |
parent | b005064ba45255ff9229a3060e6cba2cfbf4e588 (diff) |
likely intent
Change-Id: I2372ddec8e82eb99206661469843d7837d2bf6d1
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 05fdd84330ae..09595a7b5737 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1769,7 +1769,7 @@ void SbModule::GetCodeCompleteDataFromParse(CodeCompleteDataCache& aCache) { SbiSymDef* pSymDef = pPool->Get(i); //std::cerr << "i: " << i << ", type: " << pSymDef->GetType() << "; name:" << pSymDef->GetName() << std::endl; - if( (pSymDef->GetType() != SbxEMPTY) || (pSymDef->GetType() != SbxNULL) ) + if( (pSymDef->GetType() != SbxEMPTY) && (pSymDef->GetType() != SbxNULL) ) aCache.InsertGlobalVar( pSymDef->GetName(), pParser->aGblStrings.Find(pSymDef->GetTypeId()) ); SbiSymPool& pChildPool = pSymDef->GetPool(); @@ -1777,7 +1777,7 @@ void SbModule::GetCodeCompleteDataFromParse(CodeCompleteDataCache& aCache) { SbiSymDef* pChildSymDef = pChildPool.Get(j); //std::cerr << "j: " << j << ", type: " << pChildSymDef->GetType() << "; name:" << pChildSymDef->GetName() << std::endl; - if( (pChildSymDef->GetType() != SbxEMPTY) || (pChildSymDef->GetType() != SbxNULL) ) + if( (pChildSymDef->GetType() != SbxEMPTY) && (pChildSymDef->GetType() != SbxNULL) ) aCache.InsertLocalVar( pSymDef->GetName(), pChildSymDef->GetName(), pParser->aGblStrings.Find(pChildSymDef->GetTypeId()) ); } } |