From 9af0abebfd61641c9d028505caa864cdf898e35b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 May 2014 15:26:03 +0200 Subject: remove unnecessary use of Reference constructor in throw Convert code like this: throw IOException("xx", Reference< XInterface >(static_cast(this)) ); to this: throw IOException("xx", static_cast(this) ); Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb --- xmlsecurity/source/component/documentdigitalsignatures.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index c4319185e39b..157292a2855e 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -63,8 +63,8 @@ void DocumentDigitalSignatures::initialize( const Sequence< Any >& aArguments) { if (aArguments.getLength() > 2) throw css::lang::IllegalArgumentException( - "DocumentDigitalSignatures::initialize requires zero, one, or two arguments", - Reference(static_cast(this), UNO_QUERY), 0); + "DocumentDigitalSignatures::initialize requires zero, one, or two arguments", + static_cast(this), 0); m_nArgumentsCount = aArguments.getLength(); @@ -73,13 +73,13 @@ void DocumentDigitalSignatures::initialize( const Sequence< Any >& aArguments) if (!(aArguments[0] >>= m_sODFVersion)) throw css::lang::IllegalArgumentException( "DocumentDigitalSignatures::initialize: the first arguments must be a string", - Reference(static_cast(this), UNO_QUERY), 0); + static_cast(this), 0); if (aArguments.getLength() == 2 && !(aArguments[1] >>= m_bHasDocumentSignature)) throw css::lang::IllegalArgumentException( "DocumentDigitalSignatures::initialize: the second arguments must be a bool", - Reference(static_cast(this), UNO_QUERY), 1); + static_cast(this), 1); //the Version is supported as of ODF1.2, so for and 1.1 document or older we will receive the //an empty string. In this case we set it to ODFVER_010_TEXT. Then we can later check easily -- cgit