summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-06-29 18:30:34 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-06-29 18:38:14 +0200
commitb6d97514cdca32129142cd937ac0cbda3113f562 (patch)
tree802c73760715910cb707dd05079758d07edb05a6 /xmlsecurity
parent56dc79822d5c464b33b1d0199558ca684e94c069 (diff)
reduce some spacing
Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/documentsignaturehelper.cxx3
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper2.cxx7
-rw-r--r--xmlsecurity/source/helper/xsecparser.cxx10
3 files changed, 7 insertions, 13 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx
index 7d1fdd56027e..2cb069affcbb 100644
--- a/xmlsecurity/source/helper/documentsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx
@@ -102,8 +102,7 @@ void ImplFillElementList(
pNames[n], rtl_UriCharClassRelSegment,
rtl_UriEncodeStrict, RTL_TEXTENCODING_UTF8);
if (sEncName.isEmpty() && !pNames[n].isEmpty())
- throw css::uno::Exception(OUString(
- "Failed to encode element name of XStorage"), 0);
+ throw css::uno::Exception("Failed to encode element name of XStorage", 0);
if ( rxStore->isStreamElement( pNames[n] ) )
{
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
index d8b35863a73f..663ba8a19e31 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
@@ -195,8 +195,7 @@ uno::Reference < io::XInputStream > UriBindingHelper::OpenInputStream( const uno
const OUString sName = ::rtl::Uri::decode(
rURI, rtl_UriDecodeStrict, rtl_UriCharClassRelSegment);
if (sName.isEmpty() && !rURI.isEmpty())
- throw uno::Exception(OUString(
- "Could not decode URI for stream element."), 0);
+ throw uno::Exception("Could not decode URI for stream element.", 0);
uno::Reference< io::XStream > xStream;
xStream = rxStore->cloneStreamElement( sName );
@@ -209,9 +208,7 @@ uno::Reference < io::XInputStream > UriBindingHelper::OpenInputStream( const uno
const OUString aStoreName = ::rtl::Uri::decode(
rURI.copy( 0, nSepPos ), rtl_UriDecodeStrict, rtl_UriCharClassRelSegment);
if (aStoreName.isEmpty() && !rURI.isEmpty())
- throw uno::Exception(
- OUString(
- "Could not decode URI for stream element."), 0);
+ throw uno::Exception("Could not decode URI for stream element.", 0);
OUString aElement = rURI.copy( nSepPos+1 );
uno::Reference < embed::XStorage > xSubStore = rxStore->openStorageElement( aStoreName, embed::ElementModes::READ );
diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx
index 230789cb1cab..da915497b8df 100644
--- a/xmlsecurity/source/helper/xsecparser.cxx
+++ b/xmlsecurity/source/helper/xsecparser.cxx
@@ -181,14 +181,13 @@ void SAL_CALL XSecParser::startElement(
{//getCaughtException MUST be the first line in the catch block
cssu::Any exc = cppu::getCaughtException();
throw cssxs::SAXException(
- OUString(
- "xmlsecurity: Exception in XSecParser::startElement"),
+ "xmlsecurity: Exception in XSecParser::startElement",
0, exc);
}
catch (...)
{
throw cssxs::SAXException(
- OUString("xmlsecurity: unexpected exception in XSecParser::startElement"), 0,
+ "xmlsecurity: unexpected exception in XSecParser::startElement", 0,
cssu::Any());
}
}
@@ -254,14 +253,13 @@ void SAL_CALL XSecParser::endElement( const OUString& aName )
{//getCaughtException MUST be the first line in the catch block
cssu::Any exc = cppu::getCaughtException();
throw cssxs::SAXException(
- OUString(
- "xmlsecurity: Exception in XSecParser::endElement"),
+ "xmlsecurity: Exception in XSecParser::endElement",
0, exc);
}
catch (...)
{
throw cssxs::SAXException(
- OUString("xmlsecurity: unexpected exception in XSecParser::endElement"), 0,
+ "xmlsecurity: unexpected exception in XSecParser::endElement", 0,
cssu::Any());
}
}