summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:32:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:32 +0100
commit7ff32983b0219fc39f6b78cdd4a42f08aff8dc6f (patch)
tree34a3af4242e7de07f5b6789a92b7052793a10b78
parentb74e92d51f7948d97ad91bb61b55ab3c0ed622c1 (diff)
sot: Use appropriate OUString functions on string constants
Change-Id: Id787ebbfaa95c29b3f6337286fa78b089038258e
-rw-r--r--sot/source/sdstor/stgole.cxx2
-rw-r--r--sot/source/sdstor/ucbstorage.cxx12
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 )