diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:34 +0100 |
commit | 36328248309ebebee616452248d55923280deabb (patch) | |
tree | 3aec7576114f445dfe77ee1b59e332cf1f5fdc6c /vcl/workben | |
parent | 4d6b9053a437dc128d186f8d100ef4a351136f54 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/icontest.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/mtfdemo.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/outdevgrind.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/svdem.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/svpclient.cxx | 6 | ||||
-rw-r--r-- | vcl/workben/svptest.cxx | 2 |
6 files changed, 8 insertions, 8 deletions
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<MyWorkWindow> 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<FixedBitmap>::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<DemoMtfWin>::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<PushButton>::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(); |