diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:16:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:16:30 +0200 |
commit | 039913c383477e8ea1d62426df5cc30f6637ebfe (patch) | |
tree | b5f544e096a1eb84f4c87df4256692104b960c30 /toolkit | |
parent | 2dda43ff27ddbdb70c3e2e38d96cdd27c4e50572 (diff) |
loplugin:stringcopy: toolkit
Change-Id: I6725d1f1e447d37de2de6442c66a9942b05d2dbf
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxwindows.cxx | 8 | ||||
-rw-r--r-- | toolkit/source/controls/formattedcontrol.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index f7e2270aacef..8ca7de9664ab 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -2094,7 +2094,7 @@ void SAL_CALL VCLXListBox::listItemModified( const ItemListEvent& i_rEvent ) // VCL's ListBox does not support changing an entry's text or image, so remove and re-insert - const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString( pListBox->GetEntry( i_rEvent.ItemPosition ) ); + const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : pListBox->GetEntry( i_rEvent.ItemPosition ); const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ? TkResMgr::getImageFromURL( i_rEvent.ItemImageURL.Value ) : pListBox->GetEntryImage( i_rEvent.ItemPosition ) ); pListBox->RemoveEntry( i_rEvent.ItemPosition ); @@ -4536,7 +4536,7 @@ void SAL_CALL VCLXComboBox::listItemModified( const ItemListEvent& i_rEvent ) // VCL's ComboBox does not support changing an entry's text or image, so remove and re-insert - const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString( pComboBox->GetEntry( i_rEvent.ItemPosition ) ); + const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : pComboBox->GetEntry( i_rEvent.ItemPosition ); const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ? lcl_getImageFromURL( i_rEvent.ItemImageURL.Value ) : pComboBox->GetEntryImage( i_rEvent.ItemPosition ) ); pComboBox->RemoveEntryAt( i_rEvent.ItemPosition ); @@ -5940,7 +5940,7 @@ css::uno::Any VCLXMetricField::getProperty( const OUString& PropertyName ) aProp <<= (sal_uInt16) (GetAs< MetricField >()->GetUnit()); break; case BASEPROPERTY_CUSTOMUNITTEXT: - aProp <<= OUString( GetAs< MetricField >()->GetCustomUnitText() ); + aProp <<= GetAs< MetricField >()->GetCustomUnitText(); break; default: { @@ -6292,7 +6292,7 @@ css::uno::Any VCLXCurrencyField::getProperty( const OUString& PropertyName ) break; case BASEPROPERTY_CURRENCYSYMBOL: { - aProp <<= OUString( GetAs< LongCurrencyField >()->GetCurrencySymbol() ); + aProp <<= GetAs< LongCurrencyField >()->GetCurrencySymbol(); } break; case BASEPROPERTY_NUMSHOWTHOUSANDSEP: diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 5f9b13a7d9ea..69d1b1c056da 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -379,7 +379,7 @@ namespace toolkit Any aReturn; switch (nPropId) { - case BASEPROPERTY_DEFAULTCONTROL: aReturn <<= OUString( OUString::createFromAscii( szServiceName_UnoControlFormattedField ) ); break; + case BASEPROPERTY_DEFAULTCONTROL: aReturn <<= OUString::createFromAscii( szServiceName_UnoControlFormattedField ); break; case BASEPROPERTY_TREATASNUMBER: aReturn <<= true; break; |