From f3a4489fb8885b549afcf567e88b7f46fddceba3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 7 Jul 2011 00:15:13 +0100 Subject: ByteString::CreateFromInt32->rtl::OString::valueOf --- automation/source/server/statemnt.cxx | 3 ++- automation/source/testtool/tcommuni.cxx | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'automation') diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx index 16a8ceda6c18..ed0e1103fe0d 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -1001,7 +1001,8 @@ void StatementCommand::WriteControlData( Window *pBase, sal_uLong nConf, sal_Boo aID.Assign("Help"); break; default: - aID = ByteString::CreateFromInt32( pBD->GetButtonId(i) ); + aID = rtl::OString::valueOf( + static_cast(pBD->GetButtonId(i))); break; } diff --git a/automation/source/testtool/tcommuni.cxx b/automation/source/testtool/tcommuni.cxx index 40795641322c..c726d5193640 100644 --- a/automation/source/testtool/tcommuni.cxx +++ b/automation/source/testtool/tcommuni.cxx @@ -168,7 +168,8 @@ sal_uLong GetTTPortConfig() Config aConf(Config::GetConfigName( Config::GetDefDirectory(), CUniString("testtool") )); aConf.SetGroup("Communication"); - GETSET( abPortToTalk, "TTPort", ByteString::CreateFromInt32( TESTTOOL_DEFAULT_PORT ) ); + GETSET( abPortToTalk, "TTPort", + rtl::OString::valueOf(static_cast(TESTTOOL_DEFAULT_PORT)) ); return (sal_uLong)abPortToTalk.ToInt64(); } @@ -194,7 +195,8 @@ sal_uLong GetUnoPortConfig() Config aConf(Config::GetConfigName( Config::GetDefDirectory(), CUniString("testtool") )); aConf.SetGroup("Communication"); - GETSET( abPortToTalk, "UnoPort", ByteString::CreateFromInt32( UNO_DEFAULT_PORT ) ); + GETSET( abPortToTalk, "UnoPort", + rtl::OString::valueOf(static_cast(UNO_DEFAULT_PORT)) ); return (sal_uLong)abPortToTalk.ToInt64(); } -- cgit