diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-25 09:27:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-25 09:56:02 +0100 |
commit | 75a66d2d1f295a1a9a488f0a12c672a975ffaf81 (patch) | |
tree | 8dcfa78afce8b1c4ba5b06ebf3b90b5ec67e3baf /svx/source/engine3d/extrud3d.cxx | |
parent | 12a034623e015ca05b56c82ebb63230ce731bab4 (diff) |
convert TakeObjNameSingul family to OUString
Change-Id: I0c667cbcfcc1ea1f04d113a53b7ba83c943052e4
Diffstat (limited to 'svx/source/engine3d/extrud3d.cxx')
-rw-r--r-- | svx/source/engine3d/extrud3d.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/svx/source/engine3d/extrud3d.cxx b/svx/source/engine3d/extrud3d.cxx index 724f45d3f8b4..6b4c60708901 100644 --- a/svx/source/engine3d/extrud3d.cxx +++ b/svx/source/engine3d/extrud3d.cxx @@ -120,18 +120,19 @@ void E3dExtrudeObj::SetExtrudePolygon(const basegfx::B2DPolyPolygon &rNew) // Get the name of the object (singular) -void E3dExtrudeObj::TakeObjNameSingul(XubString& rName) const +OUString E3dExtrudeObj::TakeObjNameSingul() const { - rName=ImpGetResStr(STR_ObjNameSingulExtrude3d); + OUStringBuffer sName(ImpGetResStr(STR_ObjNameSingulExtrude3d)); - String aName( GetName() ); - if(aName.Len()) + OUString aName(GetName()); + if (!aName.isEmpty()) { - rName += sal_Unicode(' '); - rName += sal_Unicode('\''); - rName += aName; - rName += sal_Unicode('\''); + sName.append(' '); + sName.append('\''); + sName.append(aName); + sName.append('\''); } + return sName.makeStringAndClear(); } // Get the name of the object (plural) |