From 97d5293ccaf12ceae0c6d7e79b73cd783038c95c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 19 May 2017 17:18:13 +0200 Subject: loplugin:stringcopy: extensions Change-Id: I6abf8ec16f39db9226efa7e2c7f82644da100c81 --- extensions/source/propctrlr/fontdialog.cxx | 4 ++-- extensions/source/propctrlr/formcomponenthandler.cxx | 2 +- extensions/source/propctrlr/standardcontrol.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/source/propctrlr') diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx index 88721feffa37..c393654fbdce 100644 --- a/extensions/source/propctrlr/fontdialog.cxx +++ b/extensions/source/propctrlr/fontdialog.cxx @@ -313,8 +313,8 @@ namespace pcr const SvxFontItem& rFontItem = static_cast(_rSet.Get(CFID_FONT)); - lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_NAME , makeAny(OUString(rFontItem.GetFamilyName()))); - lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_STYLENAME, makeAny(OUString(rFontItem.GetStyleName()))); + lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_NAME , makeAny(rFontItem.GetFamilyName())); + lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_STYLENAME, makeAny(rFontItem.GetStyleName())); lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_FAMILY , makeAny((sal_Int16)rFontItem.GetFamily())); lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_CHARSET , makeAny((sal_Int16)rFontItem.GetCharSet())); } diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index b3e760c447c5..17282faae69c 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -523,7 +523,7 @@ namespace pcr if ( !xDatabaseContext->hasByName( sControlValue ) ) { ::svt::OFileNotation aTransformer(sControlValue); - aPropertyValue <<= OUString( aTransformer.get( ::svt::OFileNotation::N_URL ) ); + aPropertyValue <<= aTransformer.get( ::svt::OFileNotation::N_URL ); } } } diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 556435ad829e..4fdecfc2dd67 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -812,7 +812,7 @@ namespace pcr Any SAL_CALL OComboboxControl::getValue() { - return makeAny( OUString( getTypedControlWindow()->GetText() ) ); + return makeAny( getTypedControlWindow()->GetText() ); } -- cgit