summaryrefslogtreecommitdiffstats
path: root/sdext/source/presenter/PresenterToolBar.cxx
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 /sdext/source/presenter/PresenterToolBar.cxx
parentwarn when rewriter should modify something involving a macro (diff)
downloadcore-64b993e046f23baaacaff1572b7d2a816588b5ef.tar.gz
core-64b993e046f23baaacaff1572b7d2a816588b5ef.zip
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 'sdext/source/presenter/PresenterToolBar.cxx')
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index e5d7efe98c37..6fcd6d280f0d 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -1812,15 +1812,15 @@ OUString TimeFormatter::FormatTime (const oslDateTime& rTime)
const sal_Int32 nSeconds(sal::static_int_cast<sal_Int32>(rTime.Seconds));
// Hours
if (mbIs24HourFormat)
- sText.append(OUString::valueOf(nHours));
+ sText.append(OUString::number(nHours));
else
- sText.append(OUString::valueOf(
+ sText.append(OUString::number(
sal::static_int_cast<sal_Int32>(nHours>12 ? nHours-12 : nHours)));
sText.append(":");
// Minutes
- const OUString sMinutes (OUString::valueOf(nMinutes));
+ const OUString sMinutes (OUString::number(nMinutes));
if (sMinutes.getLength() == 1)
sText.append("0");
sText.append(sMinutes);
@@ -1829,7 +1829,7 @@ OUString TimeFormatter::FormatTime (const oslDateTime& rTime)
if (mbIsShowSeconds)
{
sText.append(":");
- const OUString sSeconds (OUString::valueOf(nSeconds));
+ const OUString sSeconds (OUString::number(nSeconds));
if (sSeconds.getLength() == 1)
sText.append("0");
sText.append(sSeconds);