diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-23 12:03:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-23 15:06:00 +0200 |
commit | e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b (patch) | |
tree | bc507bccee9fb71134e362b72d22991561e32aa0 /fpicker | |
parent | c5d47c327a57df55fa3dac0fff6b65888d0345e4 (diff) |
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 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/asynceventnotifier.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fpicker/source/win32/filepicker/asynceventnotifier.cxx b/fpicker/source/win32/filepicker/asynceventnotifier.cxx index 6f0873461fc8..9eb1401e42d3 100644 --- a/fpicker/source/win32/filepicker/asynceventnotifier.cxx +++ b/fpicker/source/win32/filepicker/asynceventnotifier.cxx @@ -78,14 +78,10 @@ void SAL_CALL CAsyncEventNotifier::addListener(const uno::Type& const uno::Reference< uno::XInterface >& xListener) { if ( m_rBroadcastHelper.bDisposed ) - throw lang::DisposedException( - OUString( "FilePicker is already disposed" ), - uno::Reference< uno::XInterface >() ); + throw lang::DisposedException( "FilePicker is already disposed" ); if ( m_rBroadcastHelper.bInDispose ) - throw lang::DisposedException( - OUString( "FilePicker will be disposed now." ), - uno::Reference< uno::XInterface >() ); + throw lang::DisposedException( "FilePicker will be disposed now." ); m_rBroadcastHelper.aLC.addInterface( aType, xListener ); } @@ -98,9 +94,7 @@ void SAL_CALL CAsyncEventNotifier::removeListener(const uno::Type& const uno::Reference< uno::XInterface >& xListener) { if ( m_rBroadcastHelper.bDisposed ) - throw lang::DisposedException( - OUString( "FilePicker is already disposed." ), - uno::Reference< uno::XInterface >() ); + throw lang::DisposedException( "FilePicker is already disposed." ); m_rBroadcastHelper.aLC.removeInterface( aType, xListener ); } |