Kaydet (Commit) 6b8362ac authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1430069 silence Uninitialized scalar field

Change-Id: I54b2140d965fc9c7dddfdcbddd9602ede800c3f7
Reviewed-on: https://gerrit.libreoffice.org/51566Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c8176562
...@@ -582,12 +582,9 @@ string OOXMLHexValue::toString() const ...@@ -582,12 +582,9 @@ string OOXMLHexValue::toString() const
class OOXMLHexColorValue class OOXMLHexColorValue
*/ */
OOXMLHexColorValue::OOXMLHexColorValue(const char * pValue) OOXMLHexColorValue::OOXMLHexColorValue(const char * pValue)
: OOXMLHexValue(sal_uInt32(COL_AUTO))
{ {
if (!strcmp(pValue, "auto")) if (strcmp(pValue, "auto"))
{
mnValue = sal_uInt32(COL_AUTO);
}
else
{ {
mnValue = rtl_str_toUInt32(pValue, 16); mnValue = rtl_str_toUInt32(pValue, 16);
} }
......
...@@ -213,7 +213,6 @@ class OOXMLHexValue : public OOXMLValue ...@@ -213,7 +213,6 @@ class OOXMLHexValue : public OOXMLValue
{ {
protected: protected:
sal_uInt32 mnValue; sal_uInt32 mnValue;
OOXMLHexValue() {}
public: public:
explicit OOXMLHexValue(sal_uInt32 nValue); explicit OOXMLHexValue(sal_uInt32 nValue);
explicit OOXMLHexValue(const char * pValue); explicit OOXMLHexValue(const char * pValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment