summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-02 23:29:16 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-03 10:25:40 +0200
commit246cb7e068b0955d407d82279d66c3846ccd9438 (patch)
tree87bdb77b1238c67a0729d62bd219ca53735bb6dd /xmloff
parent414540aecae90774e12390cfcf8f0a37e10684b4 (diff)
coverity#1223084 Unchecked return value
Change-Id: I1573d14412b9e01fe7382796275b83405a3bb994
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/propertyimport.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 584092878289..42bbe4f3873f 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -128,11 +128,10 @@ Any PropertyConversion::convertString( const ::com::sun::star::uno::Type& _rExpe
case TypeClass_ENUM:
{
sal_uInt16 nEnumValue(0);
- #if OSL_DEBUG_LEVEL > 0
- bool bSuccess =
- #endif
- SvXMLUnitConverter::convertEnum(nEnumValue, _rReadCharacters, _pEnumMap);
+ bool bSuccess = SvXMLUnitConverter::convertEnum(nEnumValue, _rReadCharacters, _pEnumMap);
OSL_ENSURE(bSuccess, "PropertyConversion::convertString: could not convert to an enum value!");
+ (void)bSuccess;
+
if (bEnumAsInt)
if (TypeClass_SHORT == _rExpectedType.getTypeClass())
aReturn <<= (sal_Int16)nEnumValue;