diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-02-20 00:21:37 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-24 12:59:02 +0000 |
commit | 63b0ce97ba0f71c28a7880c741100b0240332e74 (patch) | |
tree | 9589db9bb4fd6e27acd750a549f7df71a169b928 /sfx2/source/appl | |
parent | 3648c3226d369ce7a547e48f824b876180559476 (diff) |
fdo#38838 searched, replaced and removed String::CreateFromInt32().
I ran the following code replace:
s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/
And finally removed String::CreateFromInt32().
Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5
Reviewed-on: https://gerrit.libreoffice.org/2279
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/childwin.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index e1e24be242c0..6d3869ba729c 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -288,7 +288,7 @@ void SfxChildWindow::SaveStatus(const SfxChildWinInfo& rInfo) aWinData.append(rInfo.aExtraString); } - SvtViewOptions aWinOpt( E_WINDOW, String::CreateFromInt32( nID ) ); + SvtViewOptions aWinOpt( E_WINDOW, OUString::number( nID ) ); aWinOpt.SetWindowState(rtl::OStringToOUString(rInfo.aWinState, RTL_TEXTENCODING_UTF8)); ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq(1); @@ -350,7 +350,7 @@ sal_uInt16 SfxChildWindow::GetPosition() void SfxChildWindow::InitializeChildWinFactory_Impl( sal_uInt16 nId, SfxChildWinInfo& rInfo ) { // load configuration - SvtViewOptions aWinOpt( E_WINDOW, String::CreateFromInt32( nId ) ); + SvtViewOptions aWinOpt( E_WINDOW, OUString::number( nId ) ); if ( aWinOpt.Exists() && aWinOpt.HasVisible() ) rInfo.bVisible = aWinOpt.IsVisible(); // set state from configuration. Can be overwritten by UserData, see below diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 1bf812bb29e6..4187f67017c7 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -1010,10 +1010,10 @@ SearchTabPage_Impl::~SearchTabPage_Impl() { SvtViewOptions aViewOpt( E_TABPAGE, CONFIGNAME_SEARCHPAGE ); sal_Int32 nChecked = aFullWordsCB.IsChecked() ? 1 : 0; - String aUserData = String::CreateFromInt32( nChecked ); + String aUserData = OUString::number( nChecked ); aUserData += ';'; nChecked = aScopeCB.IsChecked() ? 1 : 0; - aUserData += String::CreateFromInt32( nChecked ); + aUserData += OUString::number( nChecked ); aUserData += ';'; sal_uInt16 nCount = Min( aSearchED.GetEntryCount(), (sal_uInt16)10 ); // save only 10 entries @@ -2992,20 +2992,20 @@ void SfxHelpWindow_Impl::SaveConfig() } aViewOpt.SetVisible( bIndex ); - String aUserData = String::CreateFromInt32( nIndexSize ); + String aUserData = OUString::number( nIndexSize ); aUserData += ';'; - aUserData += String::CreateFromInt32( nTextSize ); + aUserData += OUString::number( nTextSize ); aUserData += ';'; - aUserData += String::CreateFromInt32( nW ); + aUserData += OUString::number( nW ); aUserData += ';'; - aUserData += String::CreateFromInt32( nH ); + aUserData += OUString::number( nH ); Window* pScreenWin = VCLUnoHelper::GetWindow( xWindow ); aWinPos = pScreenWin->GetWindowExtentsRelative( NULL ).TopLeft(); aUserData += ';'; - aUserData += String::CreateFromInt32( aWinPos.X() ); + aUserData += OUString::number( aWinPos.X() ); aUserData += ';'; - aUserData += String::CreateFromInt32( aWinPos.Y() ); + aUserData += OUString::number( aWinPos.Y() ); aViewOpt.SetUserItem( USERITEM_NAME, makeAny( rtl::OUString( aUserData ) ) ); } |