summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-12 09:01:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-12 09:11:11 +0000
commit3249009bb77933fe1c3402f5f2110048753c8a66 (patch)
treebd01e19be22306042bc034652cb51bbcef46df8c /xmloff
parentb7f92a21a458fc6fa68894fbc881eda0a1e8325e (diff)
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
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLRegressionCurveObjectContext.cxx4
-rw-r--r--xmloff/source/chart/XMLErrorIndicatorPropertyHdl.cxx2
-rw-r--r--xmloff/source/draw/ximp3dscene.cxx6
-rw-r--r--xmloff/source/forms/elementimport.cxx4
-rw-r--r--xmloff/source/forms/officeforms.cxx2
5 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/chart/SchXMLRegressionCurveObjectContext.cxx b/xmloff/source/chart/SchXMLRegressionCurveObjectContext.cxx
index 885f5336a610..7e06dcebdb7b 100644
--- a/xmloff/source/chart/SchXMLRegressionCurveObjectContext.cxx
+++ b/xmloff/source/chart/SchXMLRegressionCurveObjectContext.cxx
@@ -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;
diff --git a/xmloff/source/chart/XMLErrorIndicatorPropertyHdl.cxx b/xmloff/source/chart/XMLErrorIndicatorPropertyHdl.cxx
index 7b95f63a4099..12ea12f51aaa 100644
--- a/xmloff/source/chart/XMLErrorIndicatorPropertyHdl.cxx
+++ b/xmloff/source/chart/XMLErrorIndicatorPropertyHdl.cxx
@@ -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;
diff --git a/xmloff/source/draw/ximp3dscene.cxx b/xmloff/source/draw/ximp3dscene.cxx
index 1d294b4b09ea..511b005694ce 100644
--- a/xmloff/source/draw/ximp3dscene.cxx
+++ b/xmloff/source/draw/ximp3dscene.cxx
@@ -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;
}
}
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index a733993a7e6a..117b99ffd323 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -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();
diff --git a/xmloff/source/forms/officeforms.cxx b/xmloff/source/forms/officeforms.cxx
index 74a37ac0be89..eb84c822d0da 100644
--- a/xmloff/source/forms/officeforms.cxx
+++ b/xmloff/source/forms/officeforms.cxx
@@ -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))