From f1d83ac45f08270f7f2dd7128056effd0251dc5e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 27 Jan 2017 16:09:54 +0200 Subject: loplugin:stringconstant check for unnecessary OUString constructor.. ..calls when creating exceptions Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe Reviewed-on: https://gerrit.libreoffice.org/33617 Tested-by: Jenkins Reviewed-by: Noel Grandin --- canvas/source/vcl/canvas.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'canvas') diff --git a/canvas/source/vcl/canvas.cxx b/canvas/source/vcl/canvas.cxx index cb65127e4d37..0a413a5398a4 100644 --- a/canvas/source/vcl/canvas.cxx +++ b/canvas/source/vcl/canvas.cxx @@ -98,9 +98,7 @@ namespace vclcanvas OutputDevice* pOutDev = reinterpret_cast(nPtr); if( !pOutDev ) - throw lang::NoSupportException( - OUString( "Passed OutDev invalid!" ), - nullptr); + throw lang::NoSupportException("Passed OutDev invalid!", nullptr); OutDevProviderSharedPtr pOutdevProvider( new OutDevHolder(*pOutDev) ); -- cgit