From 1c3e84d8192218befebcddae2ed9842d081dc6c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Jan 2017 16:38:54 +0200 Subject: 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 Reviewed-by: Noel Grandin --- sot/source/sdstor/stgole.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sot') 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 ) { } -- cgit