diff options
Diffstat (limited to 'svx/source/svdraw/svdobj.cxx')
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 8a30af0054e5..b0996d5d8405 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1055,17 +1055,12 @@ SdrObject* SdrObject::CloneSdrObject(SdrModel& rTargetModel) const OUString SdrObject::TakeObjNameSingul() const { - OUStringBuffer sName(SvxResId(STR_ObjNameSingulNONE)); + OUString sName(SvxResId(STR_ObjNameSingulNONE)); OUString aName(GetName()); if (!aName.isEmpty()) - { - sName.append(' '); - sName.append('\''); - sName.append(aName); - sName.append('\''); - } - return sName.makeStringAndClear(); + sName += " '" + aName + "'"; + return sName; } OUString SdrObject::TakeObjNamePlural() const |