summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:06 +0100
commitda7aa01435456b435b2e791a7c087d35ab5e3104 (patch)
tree0a019a8574014e952dacbcc6051c61cd677bc2c4 /toolkit
parent8fb415a88f8096356496a5773ddb09955f9c6a5d (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I66e781286bb3b03b4e872d8ad13a23bb5bf6db8a
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx2
-rw-r--r--toolkit/source/controls/roadmapentry.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 56c3f19b1a6e..5fd1fb7150f6 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -800,7 +800,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
if ( aServiceName == "tabcontrolnotabs" )
{
nWinBits |= WB_NOBORDER;
- nType = ImplGetComponentType( OUString( "tabcontrol" ) );
+ nType = ImplGetComponentType( "tabcontrol" );
}
if ( !pParent )
{
diff --git a/toolkit/source/controls/roadmapentry.cxx b/toolkit/source/controls/roadmapentry.cxx
index e385ab529e87..ef93f3067e0f 100644
--- a/toolkit/source/controls/roadmapentry.cxx
+++ b/toolkit/source/controls/roadmapentry.cxx
@@ -28,22 +28,22 @@ ORoadmapEntry::ORoadmapEntry() : ORoadmapEntry_Base( )
{
// registerProperty or registerMayBeVoidProperty or registerPropertyNoMember
- registerProperty( OUString("Label"), RM_PROPERTY_ID_LABEL,
+ registerProperty( "Label", RM_PROPERTY_ID_LABEL,
::com::sun::star::beans::PropertyAttribute::BOUND |
::com::sun::star::beans::PropertyAttribute::CONSTRAINED,
& m_sLabel, cppu::UnoType<decltype(m_sLabel)>::get() );
m_nID = -1;
- registerProperty( OUString("ID"), RM_PROPERTY_ID_ID,
+ registerProperty( "ID", RM_PROPERTY_ID_ID,
::com::sun::star::beans::PropertyAttribute::BOUND |
::com::sun::star::beans::PropertyAttribute::CONSTRAINED,
& m_nID, cppu::UnoType<decltype(m_nID)>::get() );
m_bEnabled = true;
- registerProperty( OUString("Enabled"), RM_PROPERTY_ID_ENABLED,
+ registerProperty( "Enabled", RM_PROPERTY_ID_ENABLED,
::com::sun::star::beans::PropertyAttribute::BOUND |
::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT,
& m_bEnabled, cppu::UnoType<decltype(m_bEnabled)>::get() );
- registerProperty( OUString("Interactive"), RM_PROPERTY_ID_INTERACTIVE,
+ registerProperty( "Interactive", RM_PROPERTY_ID_INTERACTIVE,
::com::sun::star::beans::PropertyAttribute::BOUND |
::com::sun::star::beans::PropertyAttribute::MAYBEDEFAULT,
& m_bInteractive, cppu::UnoType<decltype(m_bInteractive)>::get() );