diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:37:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:37:25 +0100 |
commit | 201c98c60d52530de075326b269002f23c4c2775 (patch) | |
tree | 6f7f23ab4c64cedc08bbecd1d46faa01d8e206f4 /sot | |
parent | 69b81b64f8ecd9ea627ec0efe894808e527d98fc (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7b5b2a21182d0b841a6104f2dddb16c13abb32f4
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index b5113ca14aff..c93dfe4edb3f 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -730,7 +730,7 @@ StgDirStrm::StgDirStrm( StgIo& r ) { StgEntry aRoot; aRoot.Init(); - aRoot.SetName( OUString("Root Entry") ); + aRoot.SetName( "Root Entry" ); aRoot.SetType( STG_ROOT ); m_pRoot = new StgDirEntry( aRoot ); m_pRoot->SetDirty(); diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index b07dd669b249..9093d510ca81 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1116,7 +1116,7 @@ sal_Int16 UCBStorageStream_Impl::Commit() aArg.Data = xStream; aArg.ReplaceExisting = true; aAny <<= aArg; - m_pContent->executeCommand( OUString("insert"), aAny ); + m_pContent->executeCommand( "insert", aAny ); // wrapper now controls lifetime of temporary file m_aTempURL.clear(); @@ -1665,8 +1665,8 @@ void UCBStorage_Impl::Init() if ( m_nError == ERRCODE_NONE ) { // read the manifest.xml file - aObj.Append( OUString( "META-INF" ) ); - aObj.Append( OUString( "manifest.xml" ) ); + aObj.Append( "META-INF" ); + aObj.Append( "manifest.xml" ); // create input stream std::unique_ptr<SvStream> pStream(::utl::UcbStreamHelper::CreateStream( aObj.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READ )); @@ -2132,7 +2132,7 @@ sal_Int16 UCBStorage_Impl::Commit() // first remove all open stream handles if (pContent && (!pElement->m_xStream.Is() || pElement->m_xStream->Clear())) { - pContent->executeCommand( OUString("delete"), makeAny( true ) ); + pContent->executeCommand( "delete", makeAny( true ) ); nRet = COMMIT_RESULT_SUCCESS; } else @@ -2241,7 +2241,7 @@ sal_Int16 UCBStorage_Impl::Commit() // write a manifest file // first create a subfolder "META-inf" Content aNewSubFolder; - bool bRet = ::utl::UCBContentHelper::MakeFolder( *m_pContent, OUString("META-INF"), aNewSubFolder ); + bool bRet = ::utl::UCBContentHelper::MakeFolder( *m_pContent, "META-INF", aNewSubFolder ); if ( bRet ) { // create a stream to write the manifest file - use a temp file @@ -2268,7 +2268,7 @@ sal_Int16 UCBStorage_Impl::Commit() xWriter = NULL; xOutputStream = NULL; pTempFile.reset(); - aNewSubFolder.transferContent( aSource, InsertOperation_MOVE, OUString("manifest.xml"), NameClash::OVERWRITE ); + aNewSubFolder.transferContent( aSource, InsertOperation_MOVE, "manifest.xml", NameClash::OVERWRITE ); } } else @@ -2279,7 +2279,7 @@ sal_Int16 UCBStorage_Impl::Commit() #endif // force writing Any aAny; - m_pContent->executeCommand( OUString("flush"), aAny ); + m_pContent->executeCommand( "flush", aAny ); if ( m_pSource != 0 ) { std::unique_ptr<SvStream> pStream(::utl::UcbStreamHelper::CreateStream( m_pTempFile->GetURL(), STREAM_STD_READ )); |