summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-08-21 15:07:31 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-08-21 15:10:35 +0200
commit64b993e046f23baaacaff1572b7d2a816588b5ef (patch)
tree237dce36a1d4787d168a0520839f6aab22500487 /vcl/generic
parent75f41baab6ce75786a91fe461835ee16a23ec18e (diff)
finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/print/glyphset.cxx4
-rw-r--r--vcl/generic/print/printerjob.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx
index d22d2c89e56d..94730be8d385 100644
--- a/vcl/generic/print/glyphset.cxx
+++ b/vcl/generic/print/glyphset.cxx
@@ -395,7 +395,7 @@ GlyphSet::GetGlyphSetEncodingName (rtl_TextEncoding nEnc, const OString &rFontNa
{
return rFontName
+ OString("Enc")
- + OString::valueOf ((sal_Int32)(nEnc - RTL_TEXTENCODING_USER_START));
+ + OString::number ((nEnc - RTL_TEXTENCODING_USER_START));
}
else
{
@@ -448,7 +448,7 @@ GlyphSet::GetReencodedFontName (rtl_TextEncoding nEnc, const OString &rFontName)
{
return rFontName
+ OString("-enc")
- + OString::valueOf ((sal_Int32)(nEnc - RTL_TEXTENCODING_USER_START));
+ + OString::number ((nEnc - RTL_TEXTENCODING_USER_START));
}
else
{
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx
index 2af8923af271..7c1b359cd836 100644
--- a/vcl/generic/print/printerjob.cxx
+++ b/vcl/generic/print/printerjob.cxx
@@ -586,7 +586,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
{
InitPaperSize (rJobSetup);
- OUString aPageNo = OUString::valueOf ((sal_Int32)maPageList.size()+1); // sequential page number must start with 1
+ OUString aPageNo = OUString::number ((sal_Int32)maPageList.size()+1); // sequential page number must start with 1
OUString aExt = aPageNo + OUString(".ps");
osl::File* pPageHeader = CreateSpoolFile ( OUString("psp_pghead"), aExt);
@@ -862,7 +862,7 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData )
{
// note: this discards patch files not adhering to the "int" scheme
// as there won't be a value for them
- writeFeature( pFile, pKey, pKey->getValue( OUString::valueOf( patch_order.front() ) ), false );
+ writeFeature( pFile, pKey, pKey->getValue( OUString::number( patch_order.front() ) ), false );
patch_order.pop_front();
}
}