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/fwe/classes/actiontriggerpropertyset.cxx | 10 +++++----- .../source/fwe/classes/actiontriggerseparatorpropertyset.cxx | 2 +- framework/source/fwe/classes/addonsoptions.cxx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'framework/source/fwe') diff --git a/framework/source/fwe/classes/actiontriggerpropertyset.cxx b/framework/source/fwe/classes/actiontriggerpropertyset.cxx index 738a5ac5b1df..40043c1d8e96 100644 --- a/framework/source/fwe/classes/actiontriggerpropertyset.cxx +++ b/framework/source/fwe/classes/actiontriggerpropertyset.cxx @@ -300,11 +300,11 @@ const Sequence< Property > ActionTriggerPropertySet::impl_getStaticPropertyDescr { const Property pActionTriggerPropertys[] = { - Property( OUString( "CommandURL" ), HANDLE_COMMANDURL , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), - Property( OUString( "HelpURL" ), HANDLE_HELPURL , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), - Property( OUString( "Image" ), HANDLE_IMAGE , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), - Property( OUString( "SubContainer" ), HANDLE_SUBCONTAINER , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), - Property( OUString( "Text" ), HANDLE_TEXT , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ) + Property( "CommandURL" , HANDLE_COMMANDURL , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), + Property( "HelpURL" , HANDLE_HELPURL , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), + Property( "Image" , HANDLE_IMAGE , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), + Property( "SubContainer" , HANDLE_SUBCONTAINER , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ), + Property( "Text" , HANDLE_TEXT , cppu::UnoType::get(), PropertyAttribute::TRANSIENT ) }; // Use it to initialize sequence! diff --git a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx index 7752d6caa9f6..ca2ec4f88813 100644 --- a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx +++ b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx @@ -245,7 +245,7 @@ const Sequence< Property > ActionTriggerSeparatorPropertySet::impl_getStaticProp { const Property pActionTriggerPropertys[] = { - Property( OUString( "SeparatorType" ), HANDLE_TYPE, cppu::UnoType::get(), PropertyAttribute::TRANSIENT ) + Property( "SeparatorType", HANDLE_TYPE, cppu::UnoType::get(), PropertyAttribute::TRANSIENT ) }; // Use it to initialize sequence! diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx index fc11b4e4c803..aa21aac96871 100644 --- a/framework/source/fwe/classes/addonsoptions.cxx +++ b/framework/source/fwe/classes/addonsoptions.cxx @@ -46,7 +46,7 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star; -#define ROOTNODE_ADDONMENU OUString("Office.Addons" ) +#define ROOTNODE_ADDONMENU "Office.Addons" #define PATHDELIMITER OUString("/" ) #define SEPARATOR_URL "private:separator" -- cgit