diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 09:57:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 13:00:44 +0100 |
commit | d785e039959d9274628488f7ef5b89af8445351e (patch) | |
tree | e772df2afcc032425db4968ec49b307445dff289 | |
parent | 3a1e60b47b311ceaacf4676d62bf9b989ea6d26f (diff) |
coverity#1371118 Unchecked return value
Change-Id: I59316bdbd6bf4eec2b382c5894f51f1208c84fb6
-rw-r--r-- | reportdesign/source/filter/xml/xmlReport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reportdesign/source/filter/xml/xmlReport.cxx b/reportdesign/source/filter/xml/xmlReport.cxx index 895ae83cbf7f..2170f84f406b 100644 --- a/reportdesign/source/filter/xml/xmlReport.cxx +++ b/reportdesign/source/filter/xml/xmlReport.cxx @@ -70,7 +70,8 @@ OXMLReport::OXMLReport( ORptFilter& rImport, { sal_uInt16 nRet = static_cast<sal_uInt16>(sdb::CommandType::COMMAND); const SvXMLEnumMapEntry* aXML_EnumMap = OXMLHelper::GetCommandTypeOptions(); - SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap ); + bool bConvertOk = SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap ); + SAL_WARN_IF(!bConvertOk, "reportdesign", "convertEnum failed"); m_xComponent->setCommandType(nRet); } break; |