summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-07 00:15:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-07 10:59:48 +0100
commitf3a4489fb8885b549afcf567e88b7f46fddceba3 (patch)
treeed42ccbda4256de5a09f51d846c83cabab7315c7 /automation
parent6407ae08b15438965a501087c1ff8c8f6c1da9b6 (diff)
ByteString::CreateFromInt32->rtl::OString::valueOf
Diffstat (limited to 'automation')
-rw-r--r--automation/source/server/statemnt.cxx3
-rw-r--r--automation/source/testtool/tcommuni.cxx6
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();
}