diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index d7e0ab636a46..3a2cf610f651 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -1143,17 +1143,11 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any & if (!bConverted) { - OUStringBuffer aErrorMessage; - aErrorMessage.append( "Unable to convert the given value for the property " ); - aErrorMessage.append ( GetPropertyName( (sal_uInt16)nPropId ) ); - aErrorMessage.append( ".\n" ); - aErrorMessage.append( "Expected type: " ); - aErrorMessage.append ( pDestType->getTypeName() ); - aErrorMessage.append( "\n" ); - aErrorMessage.append( "Found type: " ); - aErrorMessage.append ( rValue.getValueType().getTypeName() ); throw css::lang::IllegalArgumentException( - aErrorMessage.makeStringAndClear(), + "Unable to convert the given value for the property " + + GetPropertyName( (sal_uInt16)nPropId ) + + ".\nExpected type: " + pDestType->getTypeName() + + "\nFound type: " + rValue.getValueType().getTypeName(), static_cast< css::beans::XPropertySet* >(this), 1); } |