From 7ff32983b0219fc39f6b78cdd4a42f08aff8dc6f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 13:32:24 +0100 Subject: sot: Use appropriate OUString functions on string constants Change-Id: Id787ebbfaa95c29b3f6337286fa78b089038258e --- sot/source/sdstor/stgole.cxx | 2 +- sot/source/sdstor/ucbstorage.cxx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 242ff816cbd6..ac98f71fbd88 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -104,7 +104,7 @@ bool StgCompObjStream::Load() { memset( &aClsId, 0, sizeof( ClsId ) ); nCbFormat = 0; - aUserName = ""; + aUserName.clear(); if( GetError() != SVSTREAM_OK ) return false; Seek( 8L ); // skip the first part diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index b64112535ca3..441a7b7e8873 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -230,7 +230,7 @@ void SAL_CALL FileStreamWrapper_Impl::closeInput() throw( NotConnectedException, --nOpenFiles; #endif ::utl::UCBContentHelper::Kill( m_aURL ); - m_aURL = ""; + m_aURL.clear(); } @@ -1120,7 +1120,7 @@ sal_Int16 UCBStorageStream_Impl::Commit() m_pContent->executeCommand( OUString("insert"), aAny ); // wrapper now controls lifetime of temporary file - m_aTempURL = ""; + m_aTempURL.clear(); INetURLObject aObj( m_aURL ); aObj.SetName( m_aName ); @@ -1168,7 +1168,7 @@ bool UCBStorageStream_Impl::Revert() if ( !m_aTempURL.isEmpty() ) { ::utl::UCBContentHelper::Kill( m_aTempURL ); - m_aTempURL = ""; + m_aTempURL.clear(); } m_bSourceRead = false; @@ -1255,7 +1255,7 @@ void UCBStorageStream_Impl::PrepareCachedForReopen( StreamMode nMode ) if ( !m_aTempURL.isEmpty() ) { ::utl::UCBContentHelper::Kill( m_aTempURL ); - m_aTempURL = ""; + m_aTempURL.clear(); } } } @@ -1975,7 +1975,7 @@ void UCBStorage_Impl::SetProps( const Sequence < Sequence < PropertyValue > >& r if ( m_bIsRoot ) // the "FullPath" of a child always starts without '/' - aPath = ""; + aPath.clear(); for ( size_t i = 0; i < m_aChildrenList.size(); ++i ) { @@ -2026,7 +2026,7 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert if ( m_bIsRoot ) // the "FullPath" of a child always starts without '/' - aPath = ""; + aPath.clear(); // now the properties of my elements for ( size_t i = 0; i < m_aChildrenList.size(); ++i ) -- cgit