summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-19 15:02:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-19 22:14:26 +0100
commit6b8362acf9e496d5c76e16b6830d63020da77930 (patch)
treebf3b05324b10c5f7e485c25ecbe27e1b2cbf1102 /writerfilter
parentc81765629bf0f7b3a0a8bb1dbed599a7f49ee58c (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>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.cxx7
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.hxx1
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);