diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 20:47:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-09 10:33:59 +0100 |
commit | cc0e9a37de8bceeb224b03a5bb1827b087e3e7b5 (patch) | |
tree | 8d24abeda6b70096c7f96107b681a81fe6378418 /rsc | |
parent | 0eb52534de536fbe33585c91f4f173653b184e24 (diff) |
cppcheck: variableScope
Change-Id: If0c56c89e2722d47a401363f3854331229856490
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/parser/rscibas.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index 3836b4748d3e..395ba1f032a3 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -150,22 +150,18 @@ void RscLangEnum::Init( RscNameTable& rNames ) Atom RscLangEnum::AddLanguage( const char* pLang, RscNameTable& rNames ) { Atom nResult = 0; - bool bAdd = false; KEY_STRUCT aStruct; if( ! rNames.Get( nResult = pHS->getID( pLang ), &aStruct ) ) { SetConstant( nResult = rNames.Put( pLang, CONSTNAME, mnLangId ), mnLangId ); // insert new lang to ULong_Iso_map OString aLang( pLang ); - bAdd = (GetLangId( aLang ) == 0); + bool bAdd = (GetLangId( aLang ) == 0); if ( bAdd ) ULong_Iso_map[ aLang ] = mnLangId; // increase id counter mnLangId++; } -#if OSL_DEBUG_LEVEL > 2 - fprintf( stderr, "AddLanguage( '%s' ) = %d (%s)\n", pLang, nResult, (bAdd ? "added" : "exists") ); -#endif return nResult; } |