summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-01-20 13:55:09 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-21 15:04:17 +0000
commit63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch)
treee3ecd8d2804dc60be4233508af0e78fdae0c9838 /vcl
parentd912979b4fefaaf3011fdca2005db6699ea45405 (diff)
Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de Reviewed-on: https://gerrit.libreoffice.org/1784 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/print/common_gfx.cxx2
-rw-r--r--vcl/source/window/builder.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index e73c6aa9dbb4..c460558f641d 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -1204,7 +1204,7 @@ PrinterGfx::DrawEPS( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize
static sal_uInt16 nEps = 0;
if( aDocTitle.isEmpty() )
- aDocTitle = rtl::OString::valueOf(static_cast<sal_Int32>(nEps++));
+ aDocTitle = OString::number(nEps++);
if( fLeft != fRight && fTop != fBottom )
{
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index a18d0b286a68..583d6ce5ddd3 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -808,7 +808,7 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
//Make up a name for it
OString sTabPageId = get_by_window(pParent) +
OString("-page") +
- OString::valueOf(static_cast<sal_Int32>(nNewPageCount));
+ OString::number(nNewPageCount);
m_aChildren.push_back(WinAndId(sTabPageId, pPage, false));
pPage->SetHelpId(m_sHelpRoot + sTabPageId);