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 --- framework/source/fwi/uielement/constitemcontainer.cxx | 6 +++--- framework/source/fwi/uielement/rootitemcontainer.cxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/source/fwi') diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx index 6a1c6f696433..d386f391ef0f 100644 --- a/framework/source/fwi/uielement/constitemcontainer.cxx +++ b/framework/source/fwi/uielement/constitemcontainer.cxx @@ -315,9 +315,9 @@ const css::uno::Sequence< css::beans::Property > ConstItemContainer::impl_getSta const css::beans::Property pProperties[] = { - css::beans::Property( OUString(PROPNAME_UINAME), PROPHANDLE_UINAME , - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ) + css::beans::Property( PROPNAME_UINAME, PROPHANDLE_UINAME , + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ) }; // Use it to initialize sequence! const css::uno::Sequence< css::beans::Property > lPropertyDescriptor( pProperties, PROPCOUNT ); diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx index b6c2a6499aec..b71fa57b4758 100644 --- a/framework/source/fwi/uielement/rootitemcontainer.cxx +++ b/framework/source/fwi/uielement/rootitemcontainer.cxx @@ -353,9 +353,9 @@ const css::uno::Sequence< css::beans::Property > RootItemContainer::impl_getStat const css::beans::Property pProperties[] = { - css::beans::Property( OUString(PROPNAME_UINAME), PROPHANDLE_UINAME , - cppu::UnoType::get(), - css::beans::PropertyAttribute::TRANSIENT ) + css::beans::Property( PROPNAME_UINAME, PROPHANDLE_UINAME , + cppu::UnoType::get(), + css::beans::PropertyAttribute::TRANSIENT ) }; // Use it to initialize sequence! const css::uno::Sequence< css::beans::Property > lPropertyDescriptor( pProperties, PROPCOUNT ); -- cgit