[Libreoffice-commits] core.git: xmloff/source
Norbert Thiebaud
nthiebaud at gmail.com
Thu Jul 3 01:26:08 PDT 2014
xmloff/source/forms/propertyimport.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 246cb7e068b0955d407d82279d66c3846ccd9438
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Wed Jul 2 23:29:16 2014 +0200
coverity#1223084 Unchecked return value
Change-Id: I1573d14412b9e01fe7382796275b83405a3bb994
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 5840928..42bbe4f 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;
More information about the Libreoffice-commits
mailing list