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/svdopage.cxx | |
parent | 12a034623e015ca05b56c82ebb63230ce731bab4 (diff) |
convert TakeObjNameSingul family to OUString
Change-Id: I0c667cbcfcc1ea1f04d113a53b7ba83c943052e4
Diffstat (limited to 'svx/source/svdraw/svdopage.cxx')
-rw-r--r-- | svx/source/svdraw/svdopage.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdopage.cxx b/svx/source/svdraw/svdopage.cxx index 2abcf5743060..8bb424d8a84f 100644 --- a/svx/source/svdraw/svdopage.cxx +++ b/svx/source/svdraw/svdopage.cxx @@ -166,18 +166,20 @@ SdrPageObj& SdrPageObj::operator=(const SdrPageObj& rObj) return *this; } -void SdrPageObj::TakeObjNameSingul(XubString& rName) const +OUString SdrPageObj::TakeObjNameSingul() const { - rName=ImpGetResStr(STR_ObjNameSingulPAGE); + OUStringBuffer sName(ImpGetResStr(STR_ObjNameSingulPAGE)); - 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 SdrPageObj::TakeObjNamePlural(XubString& rName) const |