From e13a3d566ecc34a46e037aca1b2d70e58501e422 Mon Sep 17 00:00:00 2001 From: Jean-Noël Rouvignac Date: Sun, 20 Jan 2013 10:51:58 +0100 Subject: fdo#38838 Some removal/replacement of the String/UniString with OUString MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also used the new OUString::number(...) methods. Change-Id: I3174c43d56d1ae359901bb8a13fe0096f2c74808 Reviewed-on: https://gerrit.libreoffice.org/1766 Reviewed-by: Luboš Luňák Tested-by: Luboš Luňák --- cui/source/options/fontsubs.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cui/source/options/fontsubs.cxx') diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 1ce2e89c4281..c15f1578af75 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -135,15 +135,15 @@ SvxFontSubstTabPage::SvxFontSubstTabPage( Window* pParent, sal_uInt16 nHeight; for(nHeight = 6; nHeight <= 16; nHeight++) - aFontHeightLB.InsertEntry(String::CreateFromInt32(nHeight)); + aFontHeightLB.InsertEntry(OUString::number(nHeight)); for(nHeight = 18; nHeight <= 28; nHeight+= 2) - aFontHeightLB.InsertEntry(String::CreateFromInt32(nHeight)); + aFontHeightLB.InsertEntry(OUString::number(nHeight)); for(nHeight = 32; nHeight <= 48; nHeight+= 4) - aFontHeightLB.InsertEntry(String::CreateFromInt32(nHeight)); + aFontHeightLB.InsertEntry(OUString::number(nHeight)); for(nHeight = 54; nHeight <= 72; nHeight+= 6) - aFontHeightLB.InsertEntry(String::CreateFromInt32(nHeight)); + aFontHeightLB.InsertEntry(OUString::number(nHeight)); for(nHeight = 80; nHeight <= 96; nHeight+= 8) - aFontHeightLB.InsertEntry(String::CreateFromInt32(nHeight)); + aFontHeightLB.InsertEntry(OUString::number(nHeight)); } SvTreeListEntry* SvxFontSubstTabPage::CreateEntry(String& rFont1, String& rFont2) @@ -262,7 +262,7 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet& ) else aFontNameLB.SelectEntryPos(0); aFontHeightLB.SelectEntry( - String::CreateFromInt32( + OUString::number( officecfg::Office::Common::Font::SourceViewFont::FontHeight:: get())); aNonPropFontsOnlyCB.SaveValue(); -- cgit