summaryrefslogtreecommitdiffstats
path: root/editeng
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 /editeng
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 'editeng')
-rw-r--r--editeng/source/editeng/impedit4.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 72b4c83a3e19..50e18065f74d 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -985,12 +985,12 @@ void ImpEditEngine::WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput,
// SWG:
if ( nEsc )
{
- rOutput << "{\\*\\updnprop" << OString::valueOf(
- static_cast<sal_Int32>(nProp100)).getStr() << '}';
+ rOutput << "{\\*\\updnprop" << OString::number(
+ nProp100).getStr() << '}';
}
long nUpDown = nFontHeight * std::abs( nEsc ) / 100;
- OString aUpDown = OString::valueOf(
- static_cast<sal_Int32>(nUpDown));
+ OString aUpDown = OString::number(
+ nUpDown);
if ( nEsc < 0 )
rOutput << OOO_STRING_SVTOOLS_RTF_DN << aUpDown.getStr();
else if ( nEsc > 0 )