summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:36:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:35 +0100
commit44199e81a1ef4e8712883f8bd191ef239335e06c (patch)
treec2278c4dc95a2fb5d15d8a4a75676d2f87e0e3b6
parentac6174bd0d3c896a4ab0a0a1ae93197441dd64ff (diff)
toolkit: Use appropriate OUString functions on string constants
Change-Id: Iad8c0ffce9f0b17556f5305929715ddc0cce1042
-rw-r--r--toolkit/source/awt/vclxwindows.cxx2
-rw-r--r--toolkit/source/controls/animatedimages.cxx2
-rw-r--r--toolkit/source/controls/grid/sortablegriddatamodel.cxx2
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx4
-rw-r--r--toolkit/source/controls/tkspinbutton.cxx4
-rw-r--r--toolkit/source/helper/formpdfexport.cxx2
6 files changed, 8 insertions, 8 deletions
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<OUString> 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";
}
}