summaryrefslogtreecommitdiff
path: root/rsc
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 /rsc
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 'rsc')
-rw-r--r--rsc/source/parser/erscerr.cxx2
-rw-r--r--rsc/source/parser/rscyacc.y2
-rw-r--r--rsc/source/tools/rscdef.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx
index 29da7b660a53..632ffb9a858c 100644
--- a/rsc/source/parser/erscerr.cxx
+++ b/rsc/source/parser/erscerr.cxx
@@ -79,7 +79,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
if( 1 == nErrors )
StdLstErr(OString::number(nErrors).getStr());
else
- StdLstErr(OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr());
+ StdLstErr(OString::number(nErrors -1).getStr());
StdLstErr( " Error" );
StdLstErr( " found!!" );
}
diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y
index 0c72461cfd67..5117e7698cc4 100644
--- a/rsc/source/parser/rscyacc.y
+++ b/rsc/source/parser/rscyacc.y
@@ -112,7 +112,7 @@ RscId MakeRscId( RscExpType aExpType )
if( lValue < 1 || lValue > (sal_Int32)0x7FFF )
{
pTC->pEH->Error( ERR_IDRANGE, NULL, RscId(),
- rtl::OString::valueOf(lValue).getStr() );
+ rtl::OString::number(lValue).getStr() );
}
if( aExpType.IsDefinition() )
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index 0c7903458c09..c220f5a9db80 100644
--- a/rsc/source/tools/rscdef.cxx
+++ b/rsc/source/tools/rscdef.cxx
@@ -157,7 +157,7 @@ void RscDefine::DefineToNumber()
if( pExp )
delete pExp;
pExp = NULL;
- SetName(OString::valueOf(lId));
+ SetName(OString::number(lId));
}
bool RscDefine::Evaluate()
@@ -179,7 +179,7 @@ OString RscDefine::GetMacro()
{
if( pExp )
return pExp->GetMacro();
- return OString::valueOf(lId);
+ return OString::number(lId);
}
RscDefine * RscDefineList::New( sal_uLong lFileKey, const OString& rDefName,