Kaydet (Commit) 27a8609b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704114 Unchecked return value

Change-Id: I9f92b4536557d8f6f482d6ce7646125035db3f1d
üst a16846da
...@@ -889,10 +889,11 @@ bool XMLNumberWithAutoInsteadZeroPropHdl::exportXML( OUString& rStrExpValue, con ...@@ -889,10 +889,11 @@ bool XMLNumberWithAutoInsteadZeroPropHdl::exportXML( OUString& rStrExpValue, con
{ {
sal_Int32 nValue = 0; sal_Int32 nValue = 0;
lcl_xmloff_getAny( rValue, nValue, 2 ); bool bRet = lcl_xmloff_getAny( rValue, nValue, 2 );
bRet &= nValue != 0;
// FIXME: 0 is not a valid value - write "auto" instead // FIXME: 0 is not a valid value - write "auto" instead
if (0 == nValue || !rValue.hasValue()) if (!bRet)
rStrExpValue = GetXMLToken( XML_AUTO ); rStrExpValue = GetXMLToken( XML_AUTO );
else else
{ {
......
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