From 44199e81a1ef4e8712883f8bd191ef239335e06c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 13:36:10 +0100 Subject: toolkit: Use appropriate OUString functions on string constants Change-Id: Iad8c0ffce9f0b17556f5305929715ddc0cce1042 --- toolkit/source/awt/vclxwindows.cxx | 2 +- toolkit/source/controls/animatedimages.cxx | 2 +- toolkit/source/controls/grid/sortablegriddatamodel.cxx | 2 +- toolkit/source/controls/tabpagemodel.cxx | 4 ++-- toolkit/source/controls/tkspinbutton.cxx | 4 ++-- toolkit/source/helper/formpdfexport.cxx | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index 002ef31763da..6187119904d1 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -2698,7 +2698,7 @@ uno::Sequence< beans::NamedValue > SAL_CALL VCLXMultiPage::getTabProps( sal_Int3 #define ADD_PROP( seq, i, name, val ) { \ beans::NamedValue value; \ - value.Name = OUString( name ); \ + value.Name = name; \ value.Value = uno::makeAny( val ); \ seq[i] = value; \ } diff --git a/toolkit/source/controls/animatedimages.cxx b/toolkit/source/controls/animatedimages.cxx index a79743149e71..60a10c66cbe4 100644 --- a/toolkit/source/controls/animatedimages.cxx +++ b/toolkit/source/controls/animatedimages.cxx @@ -129,7 +129,7 @@ public: { Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.AnimatedImagesControl"); + aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.AnimatedImagesControl"; return aServices; } diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index 1aab3bc91931..2ca1297ea9f6 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -889,7 +889,7 @@ private: Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { Sequence< OUString > aServiceNames(1); - aServiceNames[0] = OUString("com.sun.star.awt.grid.SortableGridDataModel"); + aServiceNames[0] = "com.sun.star.awt.grid.SortableGridDataModel"; return aServiceNames; } diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx index f6735bfa1bfa..035c8d200bbb 100644 --- a/toolkit/source/controls/tabpagemodel.cxx +++ b/toolkit/source/controls/tabpagemodel.cxx @@ -69,7 +69,7 @@ css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServ { css::uno::Sequence< OUString > aNames = ControlModelContainerBase::getSupportedServiceNames( ); aNames.realloc( aNames.getLength() + 1 ); - aNames[ aNames.getLength() - 1 ] = OUString("com.sun.star.awt.tab.UnoControlTabPageModel"); + aNames[ aNames.getLength() - 1 ] = "com.sun.star.awt.tab.UnoControlTabPageModel"; return aNames; } @@ -197,7 +197,7 @@ css::uno::Sequence SAL_CALL UnoControlTabPage::getSupportedServiceName throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > aSeq(1); - aSeq[0] = OUString("com.sun.star.awt.tab.UnoControlTabPage"); + aSeq[0] = "com.sun.star.awt.tab.UnoControlTabPage"; return aSeq; } diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx index 9635eb328e4b..7d2312535a9c 100644 --- a/toolkit/source/controls/tkspinbutton.cxx +++ b/toolkit/source/controls/tkspinbutton.cxx @@ -197,7 +197,7 @@ public: { Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.UnoControlSpinButtonModel"); + aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.UnoControlSpinButtonModel"; return aServices; } @@ -260,7 +260,7 @@ public: { Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 1 ); - aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.UnoControlSpinButton"); + aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.UnoControlSpinButton"; return aServices; } diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx index 99880edda4df..3e0f1699478b 100644 --- a/toolkit/source/helper/formpdfexport.cxx +++ b/toolkit/source/helper/formpdfexport.cxx @@ -543,7 +543,7 @@ namespace toolkitform } catch(...) { - pRadioWidget->OnValue = OUString( "On" ); + pRadioWidget->OnValue = "On"; } } -- cgit v1.2.3