summaryrefslogtreecommitdiffstats
path: root/package/source/zipapi/blowfishcontext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-23 12:03:21 +0200
committerNoel Grandin <noel@peralex.com>2014-05-23 15:06:00 +0200
commite7bc3cab019fbf040f9fb8b53ae2cf3f977d200b (patch)
treebc507bccee9fb71134e362b72d22991561e32aa0 /package/source/zipapi/blowfishcontext.cxx
parentadd default value for Context param in uno::Exception constructors (diff)
downloadcore-e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b.tar.gz
core-e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b.zip
remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
Diffstat (limited to 'package/source/zipapi/blowfishcontext.cxx')
-rw-r--r--package/source/zipapi/blowfishcontext.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/source/zipapi/blowfishcontext.cxx b/package/source/zipapi/blowfishcontext.cxx
index fac26fba52d6..f60f299d7bca 100644
--- a/package/source/zipapi/blowfishcontext.cxx
+++ b/package/source/zipapi/blowfishcontext.cxx
@@ -30,8 +30,7 @@ uno::Reference< xml::crypto::XCipherContext > BlowfishCFB8CipherContext::Create(
::rtl::Reference< BlowfishCFB8CipherContext > xResult = new BlowfishCFB8CipherContext();
xResult->m_pCipher = rtl_cipher_create( rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeStream );
if ( !xResult->m_pCipher )
- throw uno::RuntimeException("Can not create cipher!",
- uno::Reference< XInterface >() );
+ throw uno::RuntimeException("Can not create cipher!" );
if ( rtl_Cipher_E_None != rtl_cipher_init(
xResult->m_pCipher,
@@ -41,8 +40,7 @@ uno::Reference< xml::crypto::XCipherContext > BlowfishCFB8CipherContext::Create(
reinterpret_cast< const sal_uInt8* >( aInitVector.getConstArray() ),
aInitVector.getLength() ) )
{
- throw uno::RuntimeException("Can not initialize cipher!",
- uno::Reference< XInterface >() );
+ throw uno::RuntimeException("Can not initialize cipher!" );
}
xResult->m_bEncrypt = bEncrypt;
@@ -88,8 +86,7 @@ uno::Sequence< sal_Int8 > SAL_CALL BlowfishCFB8CipherContext::convertWithCipherC
if ( rtl_Cipher_E_None != nError )
{
- throw uno::RuntimeException("Can not decrypt/encrypt with cipher!",
- uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("Can not decrypt/encrypt with cipher!" );
}
return aResult;