diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 15:02:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 22:14:26 +0100 |
commit | 6b8362acf9e496d5c76e16b6830d63020da77930 (patch) | |
tree | bf3b05324b10c5f7e485c25ecbe27e1b2cbf1102 | |
parent | c81765629bf0f7b3a0a8bb1dbed599a7f49ee58c (diff) |
coverity#1430069 silence Uninitialized scalar field
Change-Id: I54b2140d965fc9c7dddfdcbddd9602ede800c3f7
Reviewed-on: https://gerrit.libreoffice.org/51566
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.cxx | 7 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.hxx | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx index 13c5cf0493b7..82ccae8cab37 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx @@ -582,12 +582,9 @@ string OOXMLHexValue::toString() const class OOXMLHexColorValue */ OOXMLHexColorValue::OOXMLHexColorValue(const char * pValue) + : OOXMLHexValue(sal_uInt32(COL_AUTO)) { - if (!strcmp(pValue, "auto")) - { - mnValue = sal_uInt32(COL_AUTO); - } - else + if (strcmp(pValue, "auto")) { mnValue = rtl_str_toUInt32(pValue, 16); } diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx index d8c38d87d904..327d3dd09a32 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx @@ -213,7 +213,6 @@ class OOXMLHexValue : public OOXMLValue { protected: sal_uInt32 mnValue; - OOXMLHexValue() {} public: explicit OOXMLHexValue(sal_uInt32 nValue); explicit OOXMLHexValue(const char * pValue); |