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 --- shell/source/backends/desktopbe/desktopbackend.cxx | 2 +- shell/source/backends/localebe/localebackend.cxx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index e162a03c3ded..42bc6a8b3ce4 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -121,7 +121,7 @@ private: void Default::setPropertyValue(OUString const &, css::uno::Any const &) { throw css::lang::IllegalArgumentException( - OUString("setPropertyValue not supported"), + "setPropertyValue not supported", static_cast< cppu::OWeakObject * >(this), -1); } diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx index 1eb92c9773e8..36d1bf456667 100644 --- a/shell/source/backends/localebe/localebackend.cxx +++ b/shell/source/backends/localebe/localebackend.cxx @@ -259,8 +259,7 @@ void LocaleBackend::setPropertyValue( OUString const &, css::uno::Any const &) { throw css::lang::IllegalArgumentException( - OUString( - "setPropertyValue not supported"), + "setPropertyValue not supported", static_cast< cppu::OWeakObject * >(this), -1); } -- cgit