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 --- sdext/source/presenter/PresenterViewFactory.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sdext/source/presenter/PresenterViewFactory.cxx') diff --git a/sdext/source/presenter/PresenterViewFactory.cxx b/sdext/source/presenter/PresenterViewFactory.cxx index 912bc1bab0e0..e70cf2786ad8 100644 --- a/sdext/source/presenter/PresenterViewFactory.cxx +++ b/sdext/source/presenter/PresenterViewFactory.cxx @@ -515,8 +515,7 @@ void PresenterViewFactory::ThrowIfDisposed() const if (rBHelper.bDisposed || rBHelper.bInDispose) { throw lang::DisposedException ( - OUString( - "PresenterViewFactory object has already been disposed"), + "PresenterViewFactory object has already been disposed", const_cast(static_cast(this))); } } -- cgit