summaryrefslogtreecommitdiff
path: root/vcl/generic/print/glyphset.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-10 13:51:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-11 06:48:29 +0000
commitd203948fdb780c7af5777fcc26ad88bac1bd714e (patch)
tree95458f3a290eed3d9a4ca13f28ec63f50490d7a6 /vcl/generic/print/glyphset.cxx
parent754ade38ddb2e96187d00f3e621203cea34961fa (diff)
convert 'it.begin() == it.end()' to 'it.empty()'
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145 Reviewed-on: https://gerrit.libreoffice.org/16212 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/generic/print/glyphset.cxx')
-rw-r--r--vcl/generic/print/glyphset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx
index 37bd752525f8..f0c4e301ec65 100644
--- a/vcl/generic/print/glyphset.cxx
+++ b/vcl/generic/print/glyphset.cxx
@@ -657,7 +657,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
std::list< OString > aName( rMgr.getAdobeNameFromUnicode((*aSortedGlyph).second) );
- if( aName.begin() != aName.end() )
+ if( !aName.empty() )
nSize += psp::appendStr ( aName.front().getStr(), pEncodingVector + nSize);
else
nSize += psp::appendStr (".notdef", pEncodingVector + nSize );