diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:07:31 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:10:35 +0200 |
commit | 64b993e046f23baaacaff1572b7d2a816588b5ef (patch) | |
tree | 237dce36a1d4787d168a0520839f6aab22500487 /starmath/source | |
parent | 75f41baab6ce75786a91fe461835ee16a23ec18e (diff) |
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
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/cfgitem.cxx | 10 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 979ee4319ddd..3d12fc927aac 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -385,7 +385,7 @@ const OUString SmFontFormatList::GetNewFontFormatId() const sal_Int32 nCnt = GetCount(); for (sal_Int32 i = 1; i <= nCnt + 1; ++i) { - OUString aTmpId = aPrefix + OUString::valueOf(i); + OUString aTmpId = aPrefix + OUString::number(i); if (!GetFontFormat(aTmpId)) return aTmpId; } @@ -444,7 +444,7 @@ void SmMathConfig::ReadSymbol( SmSym &rSymbol, Sequence< OUString > aNames = lcl_GetSymbolPropertyNames(); sal_Int32 nProps = aNames.getLength(); - OUString aDelim( OUString::valueOf( (sal_Unicode) '/' ) ); + OUString aDelim( OUString( (sal_Unicode) '/' ) ); OUString *pName = aNames.getArray(); for (sal_Int32 i = 0; i < nProps; ++i) { @@ -580,7 +580,7 @@ void SmMathConfig::SetSymbols( const std::vector< SmSym > &rNewSymbols ) PropertyValue *pValues = aValues.getArray(); PropertyValue *pVal = pValues; - OUString aDelim( OUString::valueOf( (sal_Unicode) '/' ) ); + OUString aDelim( OUString( (sal_Unicode) '/' ) ); std::vector< SmSym >::const_iterator aIt( rNewSymbols.begin() ); std::vector< SmSym >::const_iterator aEnd( rNewSymbols.end() ); while (aIt != aEnd) @@ -670,7 +670,7 @@ void SmMathConfig::ReadFontFormat( SmFontFormat &rFontFormat, Sequence< OUString > aNames = lcl_GetFontPropertyNames(); sal_Int32 nProps = aNames.getLength(); - OUString aDelim( OUString::valueOf( (sal_Unicode) '/' ) ); + OUString aDelim( OUString( (sal_Unicode) '/' ) ); OUString *pName = aNames.getArray(); for (sal_Int32 i = 0; i < nProps; ++i) { @@ -746,7 +746,7 @@ void SmMathConfig::SaveFontFormatList() PropertyValue *pValues = aValues.getArray(); PropertyValue *pVal = pValues; - OUString aDelim( OUString::valueOf( (sal_Unicode) '/' ) ); + OUString aDelim( OUString( (sal_Unicode) '/' ) ); for (size_t i = 0; i < nCount; ++i) { String aFntFmtId( rFntFmtList.GetFontFormatId( i ) ); diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 1f1ef6b0dc70..b75c25da2c0c 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1824,7 +1824,7 @@ IMPL_LINK_NOARG(SmSymDefineDialog, CharHighlightHdl) UpdateButtons(); // display Unicode position as symbol name while iterating over characters - const OUString aHex(OUString::valueOf(static_cast<sal_Int64>(cChar), 16 ).toAsciiUpperCase()); + const OUString aHex(OUString::number(cChar, 16 ).toAsciiUpperCase()); const OUString aPattern( (aHex.getLength() > 4) ? OUString("Ux000000") : OUString("Ux0000") ); OUString aUnicodePos( aPattern.copy( 0, aPattern.getLength() - aHex.getLength() ) ); aUnicodePos += aHex; |