Kaydet (Commit) 246cb7e0 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#1223084 Unchecked return value

Change-Id: I1573d14412b9e01fe7382796275b83405a3bb994
üst 414540ae
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment