From 64b993e046f23baaacaff1572b7d2a816588b5ef Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 21 Aug 2013 15:07:31 +0200 Subject: finish deprecation of O(U)String::valueOf() Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2 --- toolkit/source/controls/controlmodelcontainerbase.cxx | 2 +- toolkit/source/controls/tabpagecontainer.cxx | 2 +- toolkit/source/controls/unocontrolcontainer.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index 1b14d4c70665..0d7ba626f0f4 100644 --- a/toolkit/source/controls/controlmodelcontainerbase.cxx +++ b/toolkit/source/controls/controlmodelcontainerbase.cxx @@ -882,7 +882,7 @@ void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< // copy the models ::std::copy( aGroupPos->begin(), aGroupPos->end(), _rGroup.getArray() ); // give the group a name - _rName = OUString::valueOf( _nGroup ); + _rName = OUString::number( _nGroup ); } } diff --git a/toolkit/source/controls/tabpagecontainer.cxx b/toolkit/source/controls/tabpagecontainer.cxx index 7d2e1dc6f3eb..cdb038ceff69 100644 --- a/toolkit/source/controls/tabpagecontainer.cxx +++ b/toolkit/source/controls/tabpagecontainer.cxx @@ -162,7 +162,7 @@ void SAL_CALL UnoControlTabPageContainerModel::insertByIndex( ::sal_Int32 nIndex ContainerEvent aEvent; aEvent.Source = *this; aEvent.Element <<= aElement; - aEvent.Accessor <<= OUString::valueOf(nIndex); + aEvent.Accessor <<= OUString::number(nIndex); maContainerListeners.elementInserted( aEvent ); } else diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 685c92394ca8..60c72390faec 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -298,7 +298,7 @@ OUString UnoControlHolderList::impl_getFreeName_throw() OUString name( "control_" ); for ( ControlIdentifier candidateId = 0; candidateId < ::std::numeric_limits< ControlIdentifier >::max(); ++candidateId ) { - OUString candidateName( name + OUString::valueOf( candidateId ) ); + OUString candidateName( name + OUString::number( candidateId ) ); ControlMap::const_iterator loop = maControls.begin(); for ( ; loop != maControls.end(); ++loop ) { -- cgit