diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 16:59:40 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 17:07:46 +0400 |
commit | d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch) | |
tree | a99079bda02a9d8dd5bd0d54666164f362314c52 /vcl | |
parent | 704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff) |
Get rid of size() == 0
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/print/glyphset.cxx | 10 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 | ||||
-rw-r--r-- | vcl/source/glyphs/graphite_layout.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx index 6287eda82a27..5b036664aacd 100644 --- a/vcl/generic/print/glyphset.cxx +++ b/vcl/generic/print/glyphset.cxx @@ -210,14 +210,14 @@ GlyphSet::GetSymbolMapping (sal_Unicode nUnicodeChar) void GlyphSet::AddNotdef (char_map_t &rCharMap) { - if (rCharMap.size() == 0) + if (rCharMap.empty()) rCharMap[0] = 0; } void GlyphSet::AddNotdef (glyph_map_t &rGlyphMap) { - if (rGlyphMap.size() == 0) + if (rGlyphMap.empty()) rGlyphMap[0] = 0; } sal_Bool @@ -699,7 +699,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx) PSDefineReencodedFont (pOutFile, nGlyphSetID); continue; } - if ((*aGlyphSet).size() == 0) // empty set, doesn't need reencoding + if ((*aGlyphSet).empty()) // empty set, doesn't need reencoding { continue; } @@ -845,7 +845,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42 aCharSet != maCharList.end(); ++aCharSet, nCharSetID++) { - if ((*aCharSet).size() == 0) + if ((*aCharSet).empty()) continue; // loop thru all the chars in the subset @@ -877,7 +877,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42 aGlyphSet != maGlyphList.end(); ++aGlyphSet, nGlyphSetID++) { - if ((*aGlyphSet).size() == 0) + if ((*aGlyphSet).empty()) continue; // loop thru all the glyphs in the subset diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 79ded4b95129..8456d866f73f 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2272,7 +2272,7 @@ ImplFontEntry* ImplPdfBuiltinFontData::CreateFontInstance( FontSelectPattern& rF ImplDevFontList* PDFWriterImpl::filterDevFontList( ImplDevFontList* pFontList ) { - DBG_ASSERT( m_aSubsets.size() == 0, "Fonts changing during PDF generation, document will be invalid" ); + DBG_ASSERT( m_aSubsets.empty(), "Fonts changing during PDF generation, document will be invalid" ); ImplDevFontList* pFiltered = pFontList->Clone( true, true ); // append the PDF builtin fonts diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index 85a6751ac212..ce6c0514c492 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -859,7 +859,7 @@ void GraphiteLayout::expandOrCondense(ImplLayoutArgs &rArgs) } else if (nDeltaWidth < 0)// condense - apply a factor to all glyph positions { - if (mvGlyphs.size() == 0) return; + if (mvGlyphs.empty()) return; Glyphs::iterator iLastGlyph = mvGlyphs.begin() + (mvGlyphs.size() - 1); // position last glyph using original width float fXFactor = static_cast<float>(rArgs.mnLayoutWidth - iLastGlyph->mnOrigWidth) / static_cast<float>(iLastGlyph->maLinearPos.X()); |