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 --- linguistic/source/convdicxml.cxx | 2 +- linguistic/source/gciterator.cxx | 2 +- linguistic/source/lngsvcmgr.cxx | 22 +++++++++++----------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx index 91a30d367bad..80b8beedf71d 100644 --- a/linguistic/source/convdicxml.cxx +++ b/linguistic/source/convdicxml.cxx @@ -366,7 +366,7 @@ void ConvDicXMLExport::_ExportContent() DBG_ASSERT( nPropertyType, "property-type not found" ); if (nPropertyType == -1) nPropertyType = ConversionPropertyType::NOT_DEFINED; - AddAttribute( XML_NAMESPACE_TCD, "property-type", OUString::valueOf( (sal_Int32) nPropertyType ) ); + AddAttribute( XML_NAMESPACE_TCD, "property-type", OUString::number( nPropertyType ) ); } SvXMLElementExport aEntryMain( *this, XML_NAMESPACE_TCD, "entry" , sal_True, sal_True ); diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index a8e6db0e1b23..b806c22047d9 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -292,7 +292,7 @@ OUString GrammarCheckingIterator::GetOrCreateDocId( else // add new entry { sal_Int32 nRes = NextDocId(); - aRes = OUString::valueOf( nRes ); + aRes = OUString::number( nRes ); m_aDocIdMap[ xComponent.get() ] = aRes; xComponent->addEventListener( this ); } diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index e3d4639b6e05..95e165f732ac 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -622,7 +622,7 @@ namespace Sequence< OUString > aNames(1); OUString &rNodeName = aNames.getArray()[0]; rNodeName = rLastFoundList; - rNodeName += OUString::valueOf( (sal_Unicode)'/' ); + rNodeName += OUString( (sal_Unicode)'/' ); rNodeName += aCfgLocaleStr; Sequence< Any > aValues( rCfg.GetProperties( aNames ) ); if (aValues.getLength()) @@ -802,7 +802,7 @@ void LngSvcMgr::UpdateAll() while (aIt != rCurMap.end()) { OUString aCfgEntryName( aSubNodeName ); - aCfgEntryName += OUString::valueOf( (sal_Unicode) '/' ); + aCfgEntryName += OUString( (sal_Unicode) '/' ); aCfgEntryName += (*aIt).first; pNewValue->Name = aCfgEntryName; @@ -870,7 +870,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames ) if (lcl_SeqHasString( aSpellCheckerListEntries, aKeyText )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aKeyText; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -895,7 +895,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames ) if (lcl_SeqHasString( aGrammarCheckerListEntries, aKeyText )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aKeyText; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -923,7 +923,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames ) if (lcl_SeqHasString( aHyphenatorListEntries, aKeyText )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aKeyText; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -948,7 +948,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames ) if (lcl_SeqHasString( aThesaurusListEntries, aKeyText )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aKeyText; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -1819,7 +1819,7 @@ sal_Bool LngSvcMgr::SaveCfgSvcs( const String &rServiceName ) OUString aCfgLocaleStr( (LanguageTag(pLocale[i])).getBcp47() ); pValue->Value = aCfgAny; pValue->Name = aNodeName; - pValue->Name += OUString::valueOf( (sal_Unicode) '/' ); + pValue->Name += OUString( (sal_Unicode) '/' ); pValue->Name += aCfgLocaleStr; pValue++; } @@ -1916,7 +1916,7 @@ uno::Sequence< OUString > SAL_CALL if (lcl_SeqHasString( aNodeEntries, aCfgLocale )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aCfgLocale; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -1931,7 +1931,7 @@ uno::Sequence< OUString > SAL_CALL if (lcl_SeqHasString( aNodeEntries, aCfgLocale )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aCfgLocale; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -1946,7 +1946,7 @@ uno::Sequence< OUString > SAL_CALL if (lcl_SeqHasString( aNodeEntries, aCfgLocale )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aCfgLocale; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); @@ -1961,7 +1961,7 @@ uno::Sequence< OUString > SAL_CALL if (lcl_SeqHasString( aNodeEntries, aCfgLocale )) { OUString aPropName( aNode ); - aPropName += OUString::valueOf( (sal_Unicode) '/' ); + aPropName += OUString( (sal_Unicode) '/' ); aPropName += aCfgLocale; pNames[0] = aPropName; aValues = /*aCfg.*/GetProperties( aNames ); -- cgit