diff options
-rw-r--r-- | automation/source/server/statemnt.cxx | 3 | ||||
-rw-r--r-- | automation/source/testtool/tcommuni.cxx | 6 |
2 files changed, 6 insertions, 3 deletions
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<sal_Int32>(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<sal_Int32>(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<sal_Int32>(UNO_DEFAULT_PORT)) ); return (sal_uLong)abPortToTalk.ToInt64(); } |