diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 08:12:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 10:02:39 +0200 |
commit | 2c1b7e8d6a7fa22cb91919238418816671c3a497 (patch) | |
tree | 6f356017d24dffcd25261295ab25a21b738dc835 /l10ntools | |
parent | ad18bb24d51e4f735085d50c496d28bd637dbb0b (diff) |
clang-tidy readability-container-size-empty
Change-Id: I1df70b7dff5ebb6048f7fc618789faa15ca5d422
Reviewed-on: https://gerrit.libreoffice.org/61967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/propmerge.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/treemerge.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/propmerge.cxx b/l10ntools/source/propmerge.cxx index 1f57f03c2ff0..b87c64c994f7 100644 --- a/l10ntools/source/propmerge.cxx +++ b/l10ntools/source/propmerge.cxx @@ -173,7 +173,7 @@ void PropParser::Merge( const OString &rMergeSrc, const OString &rDestinationFil pMergeDataFile.reset( new MergeDataFile( rMergeSrc, m_sSource, false, false ) ); const std::vector<OString> vLanguages = pMergeDataFile->GetLanguages(); - if( vLanguages.size()>=1 && vLanguages[0] != m_sLang ) + if( !vLanguages.empty() && vLanguages[0] != m_sLang ) { std::cerr << ("Propex error: given language conflicts with language of" diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index c874603edfa2..65916d12d3e2 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -259,7 +259,7 @@ void TreeParser::Merge( pMergeDataFile.reset(new MergeDataFile( rMergeSrc, static_cast<OString>( m_pSource->name ), false, false )); const std::vector<OString> vLanguages = pMergeDataFile->GetLanguages(); - if( vLanguages.size()>=1 && vLanguages[0] != m_sLang ) + if( !vLanguages.empty() && vLanguages[0] != m_sLang ) { std::cerr << ("Treex error: given language conflicts with language of" |