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/svdraw/svdoedge.cxx | |
parent | 12a034623e015ca05b56c82ebb63230ce731bab4 (diff) |
convert TakeObjNameSingul family to OUString
Change-Id: I0c667cbcfcc1ea1f04d113a53b7ba83c943052e4
Diffstat (limited to 'svx/source/svdraw/svdoedge.cxx')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 6c3eaa1983cb..30d3366aa347 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -1638,18 +1638,19 @@ SdrEdgeObj& SdrEdgeObj::operator=(const SdrEdgeObj& rObj) return *this; } -void SdrEdgeObj::TakeObjNameSingul(XubString& rName) const +OUString SdrEdgeObj::TakeObjNameSingul() const { - rName=ImpGetResStr(STR_ObjNameSingulEDGE); + OUStringBuffer sName(ImpGetResStr(STR_ObjNameSingulEDGE)); - 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(); } void SdrEdgeObj::TakeObjNamePlural(XubString& rName) const |