diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-30 16:38:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-31 08:56:20 +0000 |
commit | 1c3e84d8192218befebcddae2ed9842d081dc6c7 (patch) | |
tree | f4fc5cddd181d6d49bf55f74e6d3d107b8ae8d18 /sot | |
parent | e1e6cdbb1e9ff37f0bb740a70045c66953bec50c (diff) |
teach lolugin:stringconstant about calling constructors
so we can remove unnecessary calls to the OUString(literal) constructor
when calling constructors like this:
Foo(OUString("xxx"), 1)
Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36
Reviewed-on: https://gerrit.libreoffice.org/33698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgole.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 1615bd2feda5..077bbb79f4f6 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -94,7 +94,7 @@ void StgInternalStream::Commit() ///////////////////////// class StgCompObjStream StgCompObjStream::StgCompObjStream( BaseStorage& rStg, bool bWr ) - : StgInternalStream( rStg, OUString("\1CompObj"), bWr ) + : StgInternalStream( rStg, "\1CompObj", bWr ) { memset( &m_aClsId, 0, sizeof( ClsId ) ); m_nCbFormat = SotClipboardFormatId::NONE; @@ -163,7 +163,7 @@ bool StgCompObjStream::Store() /////////////////////////// class StgOleStream StgOleStream::StgOleStream( BaseStorage& rStg ) - : StgInternalStream( rStg, OUString("\1Ole"), true ) + : StgInternalStream( rStg, "\1Ole", true ) { } |