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 /sfx2/source/doc | |
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 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 40ab2128492f..d079799284c1 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -465,17 +465,14 @@ SfxSaveGuard::SfxSaveGuard(const Reference< frame::XModel >& xModel , m_pFramesLock(0 ) { if ( m_pData->m_bClosed ) - throw lang::DisposedException( - OUString("Object already disposed."), - Reference< XInterface >()); + throw lang::DisposedException("Object already disposed."); if ( bRejectConcurrentSaveRequest && m_pData->m_bSaving ) throw io::IOException( - OUString("Concurrent save requests on the same document are not possible."), - Reference< XInterface >()); + "Concurrent save requests on the same document are not possible."); m_pData->m_bSaving = true; m_pFramesLock = new SfxOwnFramesLocker(m_pData->m_pObjectShell); @@ -2427,7 +2424,7 @@ void SAL_CALL SfxBaseModel::removeDocumentEventListener( const Reference< docume void SAL_CALL SfxBaseModel::notifyDocumentEvent( const OUString&, const Reference< frame::XController2 >&, const Any& ) throw ( lang::IllegalArgumentException, lang::NoSupportException, RuntimeException, std::exception ) { - throw lang::NoSupportException("SfxBaseModel controls all the sent notifications itself!", Reference< XInterface >() ); + throw lang::NoSupportException("SfxBaseModel controls all the sent notifications itself!" ); } Sequence< document::CmisProperty > SAL_CALL SfxBaseModel::getCmisProperties() @@ -3013,8 +3010,7 @@ void SfxBaseModel::impl_store( const OUString& sURL m_pData->m_pObjectShell->StoreLog(); throw frame::IllegalArgumentIOException( - OUString( "CopyStreamIfPossible parameter is not acceptable for storeAsURL() call!"), - Reference< XInterface >() ); + "CopyStreamIfPossible parameter is not acceptable for storeAsURL() call!" ); } sal_uInt32 nModifyPasswordHash = 0; |