diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 11:22:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 11:43:50 +0100 |
commit | cbba41823a2e67add2620e4901bf0ead542c2932 (patch) | |
tree | 921e608e0b72f88d0acfe48b7953bb4c37205799 /svx | |
parent | Related: #i113785# add regression test for ligatures (diff) | |
download | core-cbba41823a2e67add2620e4901bf0ead542c2932.tar.gz core-cbba41823a2e67add2620e4901bf0ead542c2932.zip |
String::Expand -> string::padToLength
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdotxat.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdotxat.cxx b/svx/source/svdraw/svdotxat.cxx index 48541e778093..75c7541d7956 100644 --- a/svx/source/svdraw/svdotxat.cxx +++ b/svx/source/svdraw/svdotxat.cxx @@ -251,11 +251,12 @@ void SdrTextObj::ImpSetTextStyleSheetListeners() if(aStyleName.Len()) { - XubString aFam = UniString::CreateFromInt32((sal_uInt16)eStyleFam); - aFam.Expand(5); + OUStringBuffer aFam; + aFam.append(static_cast<sal_Int32>(eStyleFam)); + comphelper::string::padToLength(aFam, 5, ' '); aStyleName += sal_Unicode('|'); - aStyleName += aFam; + aStyleName += aFam.makeStringAndClear(); sal_Bool bFnd(sal_False); sal_uInt32 nNum(aStyleNames.size()); |