diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-11 10:06:49 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-02-06 08:55:50 -0500 |
commit | aaeead445c1c73de6f8f4c088ef87dd6fb24c661 (patch) | |
tree | 25339038b555394fd8b3e505803ce0f32a195f01 /vcl/generic | |
parent | 7a58bd20dce4119507344e9a0c5a8aa44662045d (diff) |
convert expressions like 'size() == 0' to 'empty()'
(cherry picked from commit 776a3f14f2d987312b926ebc1ad09321a3a87f0d)
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 9752e8677684..2fe3823ab0de 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -2136,7 +2136,7 @@ void PrintFontManager::getGlyphWidths( fontID nFont, } else if( pFont->m_eType == fonttype::Type1 ) { - if( ! pFont->m_aEncodingVector.size() ) + if( pFont->m_aEncodingVector.empty() ) pFont->readAfmMetrics( m_pAtoms, true, true ); if( pFont->m_pMetrics ) { @@ -2163,18 +2163,18 @@ const std::map< sal_Unicode, sal_Int32 >* PrintFontManager::getEncodingMap( font if( !pFont || pFont->m_eType != fonttype::Type1 ) return NULL; - if( ! pFont->m_aEncodingVector.size() ) + if( pFont->m_aEncodingVector.empty() ) pFont->readAfmMetrics( m_pAtoms, true, true ); if( pNonEncoded ) - *pNonEncoded = pFont->m_aNonEncoded.size() ? &pFont->m_aNonEncoded : NULL; + *pNonEncoded = !pFont->m_aNonEncoded.empty() ? &pFont->m_aNonEncoded : NULL; if (ppPriority) { *ppPriority = &pFont->m_aEncodingVectorPriority; } - return pFont->m_aEncodingVector.size() ? &pFont->m_aEncodingVector : NULL; + return !pFont->m_aEncodingVector.empty() ? &pFont->m_aEncodingVector : NULL; } std::list< OString > PrintFontManager::getAdobeNameFromUnicode( sal_Unicode aChar ) const |