From 36328248309ebebee616452248d55923280deabb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 6 Nov 2015 09:38:34 +0100 Subject: loplugin:stringconstant: elide explicit ctor usage (automatic rewrite) Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024 --- vcl/workben/icontest.cxx | 2 +- vcl/workben/mtfdemo.cxx | 2 +- vcl/workben/outdevgrind.cxx | 2 +- vcl/workben/svdem.cxx | 2 +- vcl/workben/svpclient.cxx | 6 +++--- vcl/workben/svptest.cxx | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'vcl/workben') diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx index 636c94b17edb..75910f545cae 100644 --- a/vcl/workben/icontest.cxx +++ b/vcl/workben/icontest.cxx @@ -188,7 +188,7 @@ void IconTestApp::DoItWithVcl( const OUString& sImageFile) { VclPtrInstance pWindow( nullptr, WB_APP | WB_STDWORK | WB_SIZEABLE | WB_CLOSEABLE | WB_CLIPCHILDREN ); - pWindow->SetText(OUString("VCL Image Test")); + pWindow->SetText("VCL Image Test"); pWindow->LoadGraphic( sImageFile ); pWindow->mpFixedBitmap = VclPtr::Create( pWindow ); diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx index 3488a1e32b10..ed66ed864998 100644 --- a/vcl/workben/mtfdemo.cxx +++ b/vcl/workben/mtfdemo.cxx @@ -89,7 +89,7 @@ public: try { mpWin = VclPtr::Create(maFileName); - mpWin->SetText(OUString("Display metafile")); + mpWin->SetText("Display metafile"); mpWin->Show(); diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index 6326a77c50ee..58777ac501f9 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -67,7 +67,7 @@ class TestWindow : public Dialog public: TestWindow() : Dialog( nullptr ) { - SetText( OUString("OutDev grinding") ); + SetText( "OutDev grinding" ); SetSizePixel( Size( 1024, 1024 ) ); EnablePaint( true ); Show(); diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx index 3003f29402e0..d52c745c9168 100644 --- a/vcl/workben/svdem.cxx +++ b/vcl/workben/svdem.cxx @@ -87,7 +87,7 @@ public: void Main() { ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_APP | WB_STDWORK ); - aMainWin->SetText(OUString("VCL - Workbench")); + aMainWin->SetText("VCL - Workbench"); aMainWin->Show(); Application::Execute(); diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index 7a1de724ec43..4188221e7b48 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -121,7 +121,7 @@ public: void Main() { ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_STDWORK ); - aMainWin->SetText( OUString( "SvpClient" ) ); + aMainWin->SetText( "SvpClient" ); aMainWin->Show(); Application::Execute(); @@ -135,7 +135,7 @@ MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) : m_aQuitButton(VclPtr::Create(this, 0)) { m_aListButton->SetPosSizePixel( Point( 10, 10 ), Size( 120, 25 ) ); - m_aListButton->SetText( OUString( "List Elements" ) ); + m_aListButton->SetText( "List Elements" ); m_aListButton->SetClickHdl( LINK( this, MyWin, ListHdl ) ); m_aListButton->Show(); @@ -148,7 +148,7 @@ MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) : m_aImage->Show(); m_aQuitButton->SetPosSizePixel( Point( 10, 300 ), Size( 120,25 ) ); - m_aQuitButton->SetText( OUString( "Quit SVP server" ) ); + m_aQuitButton->SetText( "Quit SVP server" ); m_aQuitButton->SetClickHdl( LINK( this, MyWin, QuitHdl ) ); m_aQuitButton->Show(); } diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index 155576483d20..d0e070a577de 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -97,7 +97,7 @@ public: void Main() { ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_APP | WB_STDWORK ); - aMainWin->SetText( OUString( "VCL - Workbench" ) ); + aMainWin->SetText( "VCL - Workbench" ); aMainWin->Show(); Application::Execute(); -- cgit v1.2.3