Kaydet (Commit) 3249009b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704109 Unchecked return value

and

coverity#1397040 Unchecked return value
coverity#1397047 Unchecked return value
coverity#1397049 Unchecked return value
coverity#1397050 Unchecked return value
coverity#1397051 Unchecked return value

Change-Id: Idf7dd7818b74c661a1f7a757f0bdc16e2d1d5c72
üst b7f92a21
......@@ -153,10 +153,10 @@ void SchXMLEquationContext::StartElement( const uno::Reference< xml::sax::XAttri
bHasYPos = true;
break;
case XML_TOK_REGEQ_DISPLAY_EQUATION:
::sax::Converter::convertBool(bShowEquation, aValue);
(void)::sax::Converter::convertBool(bShowEquation, aValue);
break;
case XML_TOK_REGEQ_DISPLAY_R_SQUARE:
::sax::Converter::convertBool(bShowRSquare, aValue);
(void)::sax::Converter::convertBool(bShowRSquare, aValue);
break;
case XML_TOK_REGEQ_STYLE_NAME:
sAutoStyleName = aValue;
......
......@@ -37,7 +37,7 @@ bool XMLErrorIndicatorPropertyHdl::importXML( const OUString& rStrImpValue,
uno::Any& rValue, const SvXMLUnitConverter& /*rUnitConverter*/ ) const
{
bool bValue(false);
::sax::Converter::convertBool( bValue, rStrImpValue );
(void)::sax::Converter::convertBool( bValue, rStrImpValue );
// modify existing value
chart::ChartErrorIndicatorType eType = chart::ChartErrorIndicatorType_NONE;
......
......@@ -79,12 +79,12 @@ SdXML3DLightContext::SdXML3DLightContext(
}
case XML_TOK_3DLIGHT_ENABLED:
{
::sax::Converter::convertBool(mbEnabled, sValue);
(void)::sax::Converter::convertBool(mbEnabled, sValue);
break;
}
case XML_TOK_3DLIGHT_SPECULAR:
{
::sax::Converter::convertBool(mbSpecular, sValue);
(void)::sax::Converter::convertBool(mbSpecular, sValue);
break;
}
}
......@@ -329,7 +329,7 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co
}
else if( IsXMLToken( rLocalName, XML_LIGHTING_MODE ) )
{
::sax::Converter::convertBool(mbLightingMode, rValue);
(void)::sax::Converter::convertBool(mbLightingMode, rValue);
return;
}
}
......
......@@ -1790,14 +1790,14 @@ namespace xmloff
// propagate the selected flag
bool bSelected(false);
::sax::Converter::convertBool(bSelected,
(void)::sax::Converter::convertBool(bSelected,
_rxAttrList->getValueByName(sSelectedAttribute));
if (bSelected)
m_xListBoxImport->implSelectCurrentItem();
// same for the default selected
bool bDefaultSelected(false);
::sax::Converter::convertBool(bDefaultSelected,
(void)::sax::Converter::convertBool(bDefaultSelected,
_rxAttrList->getValueByName(sDefaultSelectedAttribute));
if (bDefaultSelected)
m_xListBoxImport->implDefaultSelectCurrentItem();
......
......@@ -75,7 +75,7 @@ namespace xmloff
// get and convert the value
OUString sAttributeValue = _rxAttributes->getValueByName(sCompleteAttributeName);
bool bValue = _bDefault;
::sax::Converter::convertBool(bValue, sAttributeValue);
(void)::sax::Converter::convertBool(bValue, sAttributeValue);
// set the property
if (_rxPropInfo->hasPropertyByName(_rPropName))
......
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