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 --- xmloff/source/meta/MetaImportComponent.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff/source/meta/MetaImportComponent.cxx') diff --git a/xmloff/source/meta/MetaImportComponent.cxx b/xmloff/source/meta/MetaImportComponent.cxx index 98fe47608ca3..2ba733d1abc0 100644 --- a/xmloff/source/meta/MetaImportComponent.cxx +++ b/xmloff/source/meta/MetaImportComponent.cxx @@ -77,9 +77,9 @@ SvXMLImportContext* XMLMetaImportComponent::CreateContext( IsXMLToken(rLocalName, XML_DOCUMENT_META) ) { if (!mxDocProps.is()) { - throw uno::RuntimeException(OUString( + throw uno::RuntimeException( "XMLMetaImportComponent::CreateContext: setTargetDocument " - "has not been called"), *this); + "has not been called", *this); } return new SvXMLMetaDocumentContext( *this, nPrefix, rLocalName, mxDocProps); @@ -95,9 +95,9 @@ void SAL_CALL XMLMetaImportComponent::setTargetDocument( { mxDocProps.set( xDoc, uno::UNO_QUERY ); if( !mxDocProps.is() ) - throw lang::IllegalArgumentException(OUString( + throw lang::IllegalArgumentException( "XMLMetaImportComponent::setTargetDocument: argument is no " - "XDocumentProperties"), uno::Reference(*this), 0); + "XDocumentProperties", uno::Reference(*this), 0); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit