summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-03 12:34:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-03 15:30:27 +0200
commit58db3df246d7f8e8824e36894c435b40207fe07e (patch)
tree19463327283b9bec2446d1514d6f2c29230b789f
parentc1959f505eb9322557dd915f2eefb49ce02f2802 (diff)
ofz#32843 Invalid-bool-value
Change-Id: I709890b7ad441f11c23389bc6c03f0cc975677ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113553 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/gdi/TypeSerializer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/TypeSerializer.cxx b/vcl/source/gdi/TypeSerializer.cxx
index 8dc98c91da5d..329c9b3f0e6a 100644
--- a/vcl/source/gdi/TypeSerializer.cxx
+++ b/vcl/source/gdi/TypeSerializer.cxx
@@ -419,11 +419,11 @@ void TypeSerializer::writeGraphic(const Graphic& rGraphic)
void TypeSerializer::readMapMode(MapMode& rMapMode)
{
VersionCompatRead aCompat(mrStream);
- sal_uInt16 nTmp16;
+ sal_uInt16 nTmp16(0);
Point aOrigin;
Fraction aScaleX;
Fraction aScaleY;
- bool bSimple;
+ bool bSimple(true);
mrStream.ReadUInt16(nTmp16);
MapUnit eUnit = static_cast<MapUnit>(nTmp16);