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