summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/unodraw/unoshape.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index b676551cfe82..eef6c80e03ef 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -1720,10 +1720,12 @@ void SAL_CALL SvxShape::_setPropertyValue( const OUString& rPropertyName, const
throw beans::UnknownPropertyException();
if( (pMap->nFlags & beans::PropertyAttribute::READONLY ) != 0 )
- throw beans::PropertyVetoException( rtl::OUString::createFromAscii(
- OSL_FORMAT( "Readonly property can't be set: %s",
- rtl::OUStringToOString( rPropertyName, RTL_TEXTENCODING_UTF8 ).getStr() ) ),
- uno::Reference< drawing::XShape >( this ) );
+ throw beans::PropertyVetoException(
+ ( rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM(
+ "Readonly property can't be set: " ) )
+ + rPropertyName ),
+ uno::Reference< drawing::XShape >( this ) );
mpModel->SetChanged();