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 /embeddedobj | |
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 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/oleembed.cxx | 4 | ||||
-rw-r--r-- | embeddedobj/source/msole/olepersist.cxx | 6 | ||||
-rw-r--r-- | embeddedobj/source/msole/ownview.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index 306ba5a0151a..d2da4840fca5 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -207,7 +207,7 @@ uno::Reference< embed::XStorage > OleEmbeddedObject::CreateTemporarySubstorage( for ( sal_Int32 nInd = 0; nInd < 32000 && !xResult.is(); nInd++ ) { - OUString aName = OUString::valueOf( nInd ); + OUString aName = OUString::number( nInd ); aName += OUString( "TMPSTOR" ); aName += m_aEntryName; if ( !m_xParentStorage->hasByName( aName ) ) @@ -232,7 +232,7 @@ OUString OleEmbeddedObject::MoveToTemporarySubstream() OUString aResult; for ( sal_Int32 nInd = 0; nInd < 32000 && aResult.isEmpty(); nInd++ ) { - OUString aName = OUString::valueOf( nInd ); + OUString aName = OUString::number( nInd ); aName += OUString( "TMPSTREAM" ); aName += m_aEntryName; if ( !m_xParentStorage->hasByName( aName ) ) diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index 7ccfe37021a3..d231480eea0e 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -536,7 +536,7 @@ void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStrea for ( sal_uInt8 nInd = 0; nInd < 10; nInd++ ) { OUString aStreamName( "\002OlePres00" ); - aStreamName += OUString::valueOf( (sal_Int32)nInd ); + aStreamName += OUString::number( nInd ); if ( xNameContainer->hasByName( aStreamName ) ) xNameContainer->removeByName( aStreamName ); } @@ -604,7 +604,7 @@ sal_Bool OleEmbeddedObject::HasVisReplInStream() for ( sal_uInt8 nInd = 0; nInd < 10 && !bExists; nInd++ ) { OUString aStreamName( "\002OlePres00" ); - aStreamName += OUString::valueOf( (sal_Int32)nInd ); + aStreamName += OUString::number( nInd ); try { bExists = xNameContainer->hasByName( aStreamName ); @@ -654,7 +654,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres for ( sal_uInt8 nInd = 0; nInd < 10; nInd++ ) { OUString aStreamName( "\002OlePres00" ); - aStreamName += OUString::valueOf( (sal_Int32)nInd ); + aStreamName += OUString::number( nInd ); uno::Reference< io::XStream > xCachedCopyStream; try { diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx index 1df837c44a0f..5478d054b063 100644 --- a/embeddedobj/source/msole/ownview.cxx +++ b/embeddedobj/source/msole/ownview.cxx @@ -308,7 +308,7 @@ sal_Bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io aReadSeq[0] == '.' ) { - aFileSuffix += OUString::valueOf( (sal_Unicode) aReadSeq[0] ); + aFileSuffix += OUString( (sal_Unicode) aReadSeq[0] ); } } while( aReadSeq[0] ); |