summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/extrud3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/engine3d/extrud3d.cxx')
-rw-r--r--svx/source/engine3d/extrud3d.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/svx/source/engine3d/extrud3d.cxx b/svx/source/engine3d/extrud3d.cxx
index 605851d90476..d0cb345755a3 100644
--- a/svx/source/engine3d/extrud3d.cxx
+++ b/svx/source/engine3d/extrud3d.cxx
@@ -132,17 +132,14 @@ void E3dExtrudeObj::SetExtrudePolygon(const basegfx::B2DPolyPolygon &rNew)
OUString E3dExtrudeObj::TakeObjNameSingul() const
{
- OUStringBuffer sName(SvxResId(STR_ObjNameSingulExtrude3d));
+ OUString sName(SvxResId(STR_ObjNameSingulExtrude3d));
OUString aName(GetName());
if (!aName.isEmpty())
{
- sName.append(' ');
- sName.append('\'');
- sName.append(aName);
- sName.append('\'');
+ sName += " '" + aName + "'";
}
- return sName.makeStringAndClear();
+ return sName;
}
// Get the name of the object (plural)