diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-20 13:55:09 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-21 15:04:17 +0000 |
commit | 63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch) | |
tree | e3ecd8d2804dc60be4233508af0e78fdae0c9838 /idl | |
parent | d912979b4fefaaf3011fdca2005db6699ea45405 (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 'idl')
-rw-r--r-- | idl/source/cmptools/lex.cxx | 2 | ||||
-rw-r--r-- | idl/source/objects/basobj.cxx | 4 | ||||
-rw-r--r-- | idl/source/objects/bastype.cxx | 4 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 8 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index f3f9252ebf67..e01cabb9b692 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -36,7 +36,7 @@ rtl::OString SvToken::GetTokenAsString() const aStr = aString; break; case SVTOKEN_INTEGER: - aStr = rtl::OString::valueOf(static_cast<sal_Int64>(nLong)); + aStr = OString::number(nLong); break; case SVTOKEN_STRING: aStr = aString; diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx index fc0f19d17329..f4d646569ea7 100644 --- a/idl/source/objects/basobj.cxx +++ b/idl/source/objects/basobj.cxx @@ -561,9 +561,9 @@ void SvMetaExtern::WriteAttributes( SvIdlDataBase & rBase, SvStream & rOutStm, rOutStm << "uuid(" << rtl::OUStringToOString(GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8).getStr() << ")," << endl; WriteTab( rOutStm, nTab ); rOutStm << "version(" - << rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMajorVersion())).getStr() + << OString::number(aVersion.GetMajorVersion()).getStr() << '.' - << rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMinorVersion())).getStr() + << OString::number(aVersion.GetMinorVersion()).getStr() << ")," << endl; } diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index 6f1fdf1b1315..0d7510e1046a 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -413,9 +413,9 @@ sal_Bool SvVersion::ReadSvIdl( SvTokenStream & rInStm ) sal_Bool SvVersion::WriteSvIdl( SvStream & rOutStm ) { rOutStm << SvHash_Version()->GetName().getStr() << '(' - << rtl::OString::valueOf(static_cast<sal_Int32>(nMajorVersion)).getStr() + << OString::number(nMajorVersion).getStr() << '.' - << rtl::OString::valueOf(static_cast<sal_Int32>(nMinorVersion)).getStr() + << OString::number(nMinorVersion).getStr() << ')'; return sal_True; } diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index e55712eb6423..644ff6680e39 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1152,7 +1152,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount, sal_Bool bIsEnumSlot = 0 != pEnumValue; rOutStm << "// Slot Nr. " - << rtl::OString::valueOf(static_cast<sal_Int32>(nListPos)).getStr() + << OString::number(nListPos).getStr() << " : "; rtl::OString aSlotIdValue(rtl::OString::valueOf(static_cast<sal_Int32>( GetSlotId().GetValue()))); @@ -1364,7 +1364,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount, rOutStm << ',' << endl; WriteTab( rOutStm, 4 ); rOutStm - << rtl::OString::valueOf(static_cast<sal_Int32>(nCount)).getStr() + << OString::number(nCount).getStr() << "/*Offset*/, "; if( IsMethod() ) @@ -1494,7 +1494,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm, { rTable[ nSId ] = this; rOutStm << "#define " << GetSlotId().getString().getStr() << '\t' - << rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr() + << OString::number(nSId).getStr() << endl; } @@ -1519,7 +1519,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm, sal_Bool bIdOk = sal_False; if( rBase.FindId( aSId, &nSId2 ) ) { - aSId = rtl::OString::valueOf(static_cast<sal_Int32>(nSId2)); + aSId = OString::number(nSId2); bIdOk = sal_True; } diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 2ce42b7c4d47..e8de9dab6c20 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -1402,7 +1402,7 @@ void SvMetaType::WriteSfxItem( rtl::OStringBuffer aAttrArray; sal_uLong nAttrCount = MakeSfx( aAttrArray ); rtl::OString aAttrCount( - rtl::OString::valueOf(static_cast<sal_Int32>(nAttrCount))); + OString::number(nAttrCount)); aTypeName.append(aAttrCount); rOutStm << "extern " << aTypeName.getStr() |