diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-09 00:17:54 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-09 00:17:54 +0200 |
commit | da41ba97d3ac0eb751dfc4b716bd594d1670c77e (patch) | |
tree | 14e7379e4902fc1af5d5dc499b4d8aa58edfe58a /l10ntools | |
parent | 2a90263421ff14eaf246998cc71551583a140f8a (diff) |
Some cppcheck cleaning
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/layout/layoutparse.cxx | 2 | ||||
-rw-r--r-- | l10ntools/layout/tralay.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/layout/layoutparse.cxx b/l10ntools/layout/layoutparse.cxx index d3d80b6e95af..1d8473c0926b 100644 --- a/l10ntools/layout/layoutparse.cxx +++ b/l10ntools/layout/layoutparse.cxx @@ -74,7 +74,7 @@ LayoutXMLFile::HandleElement( XMLElement* element ) { std::vector<XMLAttribute*> interesting = interestingAttributes( element->GetAttributeList() ); - if ( interesting.size() ) + if ( !interesting.empty() ) { std::vector<XMLAttribute*>::iterator i = interesting.begin(); diff --git a/l10ntools/layout/tralay.cxx b/l10ntools/layout/tralay.cxx index e8c614450ca9..fa3086af4359 100644 --- a/l10ntools/layout/tralay.cxx +++ b/l10ntools/layout/tralay.cxx @@ -156,7 +156,7 @@ void TranslateLayout::ParseCommandLine() else mFiles.push_back( ConvertSystemPath( aParam ) ); } - if ( !mFiles.size() ) + if ( mFiles.empty() ) { fprintf( stderr, "error: No XML-FILE found\n" ); usage(); @@ -325,7 +325,7 @@ void TranslateLayout::MergeLanguage( ByteString const& language ) void TranslateLayout::Merge() { - if ( mLanguages.size() ) + if (!mLanguages.empty() ) for ( std::vector<ByteString>::iterator i = mLanguages.begin(); i != mLanguages.end(); ++i) MergeLanguage( *i ); @@ -351,7 +351,7 @@ void TranslateLayout::CreateSDF() void TranslateLayout::ExceptionalMain() { ParseCommandLine(); - if ( mLanguages.size() ) + if ( !mLanguages.empty() ) mLanguage = mLanguages.front(); if ( mMergeMode ) Merge(); |