Kaydet (Commit) 7ff32983 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

sot: Use appropriate OUString functions on string constants

Change-Id: Id787ebbfaa95c29b3f6337286fa78b089038258e
üst b74e92d5
...@@ -104,7 +104,7 @@ bool StgCompObjStream::Load() ...@@ -104,7 +104,7 @@ bool StgCompObjStream::Load()
{ {
memset( &aClsId, 0, sizeof( ClsId ) ); memset( &aClsId, 0, sizeof( ClsId ) );
nCbFormat = 0; nCbFormat = 0;
aUserName = ""; aUserName.clear();
if( GetError() != SVSTREAM_OK ) if( GetError() != SVSTREAM_OK )
return false; return false;
Seek( 8L ); // skip the first part Seek( 8L ); // skip the first part
......
...@@ -230,7 +230,7 @@ void SAL_CALL FileStreamWrapper_Impl::closeInput() throw( NotConnectedException, ...@@ -230,7 +230,7 @@ void SAL_CALL FileStreamWrapper_Impl::closeInput() throw( NotConnectedException,
--nOpenFiles; --nOpenFiles;
#endif #endif
::utl::UCBContentHelper::Kill( m_aURL ); ::utl::UCBContentHelper::Kill( m_aURL );
m_aURL = ""; m_aURL.clear();
} }
...@@ -1120,7 +1120,7 @@ sal_Int16 UCBStorageStream_Impl::Commit() ...@@ -1120,7 +1120,7 @@ sal_Int16 UCBStorageStream_Impl::Commit()
m_pContent->executeCommand( OUString("insert"), aAny ); m_pContent->executeCommand( OUString("insert"), aAny );
// wrapper now controls lifetime of temporary file // wrapper now controls lifetime of temporary file
m_aTempURL = ""; m_aTempURL.clear();
INetURLObject aObj( m_aURL ); INetURLObject aObj( m_aURL );
aObj.SetName( m_aName ); aObj.SetName( m_aName );
...@@ -1168,7 +1168,7 @@ bool UCBStorageStream_Impl::Revert() ...@@ -1168,7 +1168,7 @@ bool UCBStorageStream_Impl::Revert()
if ( !m_aTempURL.isEmpty() ) if ( !m_aTempURL.isEmpty() )
{ {
::utl::UCBContentHelper::Kill( m_aTempURL ); ::utl::UCBContentHelper::Kill( m_aTempURL );
m_aTempURL = ""; m_aTempURL.clear();
} }
m_bSourceRead = false; m_bSourceRead = false;
...@@ -1255,7 +1255,7 @@ void UCBStorageStream_Impl::PrepareCachedForReopen( StreamMode nMode ) ...@@ -1255,7 +1255,7 @@ void UCBStorageStream_Impl::PrepareCachedForReopen( StreamMode nMode )
if ( !m_aTempURL.isEmpty() ) if ( !m_aTempURL.isEmpty() )
{ {
::utl::UCBContentHelper::Kill( m_aTempURL ); ::utl::UCBContentHelper::Kill( m_aTempURL );
m_aTempURL = ""; m_aTempURL.clear();
} }
} }
} }
...@@ -1975,7 +1975,7 @@ void UCBStorage_Impl::SetProps( const Sequence < Sequence < PropertyValue > >& r ...@@ -1975,7 +1975,7 @@ void UCBStorage_Impl::SetProps( const Sequence < Sequence < PropertyValue > >& r
if ( m_bIsRoot ) if ( m_bIsRoot )
// the "FullPath" of a child always starts without '/' // the "FullPath" of a child always starts without '/'
aPath = ""; aPath.clear();
for ( size_t i = 0; i < m_aChildrenList.size(); ++i ) for ( size_t i = 0; i < m_aChildrenList.size(); ++i )
{ {
...@@ -2026,7 +2026,7 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert ...@@ -2026,7 +2026,7 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert
if ( m_bIsRoot ) if ( m_bIsRoot )
// the "FullPath" of a child always starts without '/' // the "FullPath" of a child always starts without '/'
aPath = ""; aPath.clear();
// now the properties of my elements // now the properties of my elements
for ( size_t i = 0; i < m_aChildrenList.size(); ++i ) for ( size_t i = 0; i < m_aChildrenList.size(); ++i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment