summaryrefslogtreecommitdiff
path: root/xmlscript/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-27 16:09:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-28 09:22:55 +0000
commitf1d83ac45f08270f7f2dd7128056effd0251dc5e (patch)
tree55d924eaa7f55627039d44458d869ef65130fdf8 /xmlscript/source
parent53d3755972bfd3bd2cd650edf91f1483038028c8 (diff)
loplugin:stringconstant check for unnecessary OUString constructor..
..calls when creating exceptions Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe Reviewed-on: https://gerrit.libreoffice.org/33617 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript/source')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx4
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx3
2 files changed, 2 insertions, 5 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index f37993e2bd91..49878a0bffb3 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -224,9 +224,7 @@ Reference< xml::input::XElement > ProgressBarElement::startChildElement(
}
else
{
- throw xml::sax::SAXException(
- OUString( "expected event element!" ),
- Reference< XInterface >(), Any() );
+ throw xml::sax::SAXException( "expected event element!", Reference< XInterface >(), Any() );
}
}
void ProgressBarElement::endElement()
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index e9d2b67505b7..09afb0b4851d 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -1371,8 +1371,7 @@ bool ImportContext::importImageScaleModeProperty(
}
else
{
- throw xml::sax::SAXException(
- OUString( "invalid scale image mode value!" ),
+ throw xml::sax::SAXException( "invalid scale image mode value!",
Reference< XInterface >(), Any() );
}