summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-05-02 10:47:53 +0100
committerAndras Timar <andras.timar@collabora.com>2023-05-13 20:05:29 +0200
commitcdf91d014512500751c05da552a3d9cd3e4d100b (patch)
tree46477dd60da561b7663906652f6b2d19a92b455e /vcl
parenta9178bcd55570b6eeee747d54e50b24a060d50a5 (diff)
ofz#58551 Conditional jump or move depends on uninitialised value
Change-Id: Iee5d82fff5edf14dd4f8adeabc305e96dd0ddd8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151275 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 5ac5c009fa08..98ccdcd6da5b 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -2900,7 +2900,7 @@ sal_Int32 PDFWriterImpl::createToUnicodeCMap( sal_uInt8 const * pEncoding,
{
int nMapped = 0;
for (auto n = 0u; n < nGlyphs; ++n)
- if( pCodeUnits[pEncToUnicodeIndex[n]] && pCodeUnitsPerGlyph[n] )
+ if (pCodeUnitsPerGlyph[n] && pCodeUnits[pEncToUnicodeIndex[n]])
nMapped++;
if( nMapped == 0 )
@@ -2928,7 +2928,7 @@ sal_Int32 PDFWriterImpl::createToUnicodeCMap( sal_uInt8 const * pEncoding,
int nCount = 0;
for (auto n = 0u; n < nGlyphs; ++n)
{
- if( pCodeUnits[pEncToUnicodeIndex[n]] && pCodeUnitsPerGlyph[n] )
+ if (pCodeUnitsPerGlyph[n] && pCodeUnits[pEncToUnicodeIndex[n]])
{
if( (nCount % 100) == 0 )
{