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 --- ucbhelper/source/client/content.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'ucbhelper/source/client') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index d1e7feb3b6dc..cdf39ef5bc78 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -506,9 +506,8 @@ Sequence< Any > Content::setPropertyValues( { ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - OUString( - "Length of property names sequence and value " - "sequence are unequal!" ), + "Length of property names sequence and value " + "sequence are unequal!", get(), -1 ) ), m_xImpl->getEnvironment() ); @@ -1013,8 +1012,7 @@ bool Content::isFolder() ucbhelper::cancelCommandExecution( makeAny( UnknownPropertyException( - OUString( - "Unable to retrieve value of property 'IsFolder'!" ), + "Unable to retrieve value of property 'IsFolder'!", get() ) ), m_xImpl->getEnvironment() ); @@ -1037,8 +1035,7 @@ bool Content::isDocument() ucbhelper::cancelCommandExecution( makeAny( UnknownPropertyException( - OUString( - "Unable to retrieve value of property 'IsDocument'!" ), + "Unable to retrieve value of property 'IsDocument'!", get() ) ), m_xImpl->getEnvironment() ); -- cgit