From 246cb7e068b0955d407d82279d66c3846ccd9438 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Wed, 2 Jul 2014 23:29:16 +0200 Subject: coverity#1223084 Unchecked return value Change-Id: I1573d14412b9e01fe7382796275b83405a3bb994 --- xmloff/source/forms/propertyimport.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xmloff/source') 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; -- cgit