summaryrefslogtreecommitdiffstats
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /unotools
parentMoved About dialog to DialogFragment (diff)
downloadcore-e57ca02849c3d87142ff5ff9099a212e72b8139c.tar.gz
core-e57ca02849c3d87142ff5ff9099a212e72b8139c.zip
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/accessibility/accessiblerelationsethelper.cxx30
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx28
-rw-r--r--unotools/source/config/configitem.cxx8
-rw-r--r--unotools/source/config/eventcfg.cxx38
-rw-r--r--unotools/source/config/itemholder1.cxx1
-rw-r--r--unotools/source/config/itemholder1.hxx3
-rw-r--r--unotools/source/config/useroptions.cxx8
-rw-r--r--unotools/source/misc/ServiceDocumenter.cxx3
-rw-r--r--unotools/source/misc/ServiceDocumenter.hxx14
-rw-r--r--unotools/source/misc/ZipPackageHelper.cxx2
-rw-r--r--unotools/source/misc/closeveto.cxx12
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx12
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx4
-rw-r--r--unotools/source/misc/mediadescriptor.cxx2
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx12
-rw-r--r--unotools/source/streaming/streamhelper.cxx11
-rw-r--r--unotools/source/streaming/streamwrap.cxx41
-rw-r--r--unotools/source/ucbhelper/XTempFile.hxx60
-rw-r--r--unotools/source/ucbhelper/progresshandlerwrap.cxx3
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx70
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx20
21 files changed, 129 insertions, 253 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx
index e25719c8bb2c..1a59cea8e844 100644
--- a/unotools/source/accessibility/accessiblerelationsethelper.cxx
+++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx
@@ -33,22 +33,16 @@ public:
AccessibleRelationSetHelperImpl(const AccessibleRelationSetHelperImpl& rImpl);
/// @throws uno::RuntimeException
- sal_Int32 getRelationCount( )
- throw (uno::RuntimeException);
+ sal_Int32 getRelationCount( );
/// @throws lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
- AccessibleRelation getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException);
+ AccessibleRelation getRelation( sal_Int32 nIndex );
/// @throws uno::RuntimeException
- bool containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException);
+ bool containsRelation( sal_Int16 aRelationType );
/// @throws uno::RuntimeException
- AccessibleRelation getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException);
+ AccessibleRelation getRelationByType( sal_Int16 aRelationType );
/// @throws uno::RuntimeException
- void AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException);
+ void AddRelation(const AccessibleRelation& rRelation);
private:
std::vector<AccessibleRelation> maRelations;
@@ -64,14 +58,11 @@ AccessibleRelationSetHelperImpl::AccessibleRelationSetHelperImpl(const Accessibl
}
sal_Int32 AccessibleRelationSetHelperImpl::getRelationCount( )
- throw (uno::RuntimeException)
{
return maRelations.size();
}
AccessibleRelation AccessibleRelationSetHelperImpl::getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException)
{
if ((nIndex < 0) || (static_cast<sal_uInt32>(nIndex) >= maRelations.size()))
throw lang::IndexOutOfBoundsException();
@@ -79,7 +70,6 @@ AccessibleRelation AccessibleRelationSetHelperImpl::getRelation( sal_Int32 nInde
}
bool AccessibleRelationSetHelperImpl::containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException)
{
AccessibleRelation defaultRelation; // default is INVALID
AccessibleRelation relationByType = getRelationByType(aRelationType);
@@ -87,7 +77,6 @@ bool AccessibleRelationSetHelperImpl::containsRelation( sal_Int16 aRelationType
}
AccessibleRelation AccessibleRelationSetHelperImpl::getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException)
{
sal_Int32 nCount(getRelationCount());
sal_Int32 i(0);
@@ -103,7 +92,6 @@ AccessibleRelation AccessibleRelationSetHelperImpl::getRelationByType( sal_Int16
}
void AccessibleRelationSetHelperImpl::AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException)
{
sal_Int32 nCount(getRelationCount());
sal_Int32 i(0);
@@ -150,7 +138,6 @@ AccessibleRelationSetHelper::~AccessibleRelationSetHelper()
*/
sal_Int32 SAL_CALL
AccessibleRelationSetHelper::getRelationCount( )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelationCount();
@@ -171,8 +158,6 @@ sal_Int32 SAL_CALL
*/
AccessibleRelation SAL_CALL
AccessibleRelationSetHelper::getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelation(nIndex);
@@ -192,7 +177,6 @@ sal_Int32 SAL_CALL
*/
sal_Bool SAL_CALL
AccessibleRelationSetHelper::containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->containsRelation(aRelationType);
@@ -211,14 +195,12 @@ sal_Bool SAL_CALL
*/
AccessibleRelation SAL_CALL
AccessibleRelationSetHelper::getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelationByType(aRelationType);
}
void AccessibleRelationSetHelper::AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException)
{
osl::MutexGuard aGuard (maMutex);
mpHelperImpl->AddRelation(rRelation);
@@ -227,7 +209,6 @@ void AccessibleRelationSetHelper::AddRelation(const AccessibleRelation& rRelatio
//===== XTypeProvider =======================================================
uno::Sequence< css::uno::Type> AccessibleRelationSetHelper::getTypes()
- throw (css::uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
css::uno::Sequence< css::uno::Type> aTypeSequence {
@@ -238,7 +219,6 @@ uno::Sequence< css::uno::Type> AccessibleRelationSetHelper::getTypes()
}
uno::Sequence<sal_Int8> SAL_CALL AccessibleRelationSetHelper::getImplementationId()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
}
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx
index 0b669c6cdbbe..26cd61c1a5e8 100644
--- a/unotools/source/accessibility/accessiblestatesethelper.cxx
+++ b/unotools/source/accessibility/accessiblestatesethelper.cxx
@@ -36,20 +36,15 @@ public:
AccessibleStateSetHelperImpl(const AccessibleStateSetHelperImpl& rImpl);
/// @throws uno::RuntimeException
- bool IsEmpty () const
- throw (uno::RuntimeException);
+ bool IsEmpty () const;
/// @throws uno::RuntimeException
- bool Contains (sal_Int16 aState) const
- throw (uno::RuntimeException);
+ bool Contains (sal_Int16 aState) const;
/// @throws uno::RuntimeException
- uno::Sequence<sal_Int16> GetStates() const
- throw (uno::RuntimeException);
+ uno::Sequence<sal_Int16> GetStates() const;
/// @throws uno::RuntimeException
- void AddState(sal_Int16 aState)
- throw (uno::RuntimeException);
+ void AddState(sal_Int16 aState);
/// @throws uno::RuntimeException
- void RemoveState(sal_Int16 aState)
- throw (uno::RuntimeException);
+ void RemoveState(sal_Int16 aState);
inline void AddStates( const sal_Int64 _nStates );
@@ -68,13 +63,11 @@ AccessibleStateSetHelperImpl::AccessibleStateSetHelperImpl(const AccessibleState
}
inline bool AccessibleStateSetHelperImpl::IsEmpty () const
- throw (uno::RuntimeException)
{
return maStates == 0;
}
inline bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) const
- throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
sal_uInt64 aTempBitSet(1);
@@ -83,7 +76,6 @@ inline bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) const
}
inline uno::Sequence<sal_Int16> AccessibleStateSetHelperImpl::GetStates() const
- throw (uno::RuntimeException)
{
uno::Sequence<sal_Int16> aRet(BITFIELDSIZE);
sal_Int16* pSeq = aRet.getArray();
@@ -105,7 +97,6 @@ inline void AccessibleStateSetHelperImpl::AddStates( const sal_Int64 _nStates )
}
inline void AccessibleStateSetHelperImpl::AddState(sal_Int16 aState)
- throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
sal_uInt64 aTempBitSet(1);
@@ -114,7 +105,6 @@ inline void AccessibleStateSetHelperImpl::AddState(sal_Int16 aState)
}
inline void AccessibleStateSetHelperImpl::RemoveState(sal_Int16 aState)
- throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
sal_uInt64 aTempBitSet(1);
@@ -158,7 +148,6 @@ AccessibleStateSetHelper::~AccessibleStateSetHelper()
<FALSE/> if there is at least one state set in it.
*/
sal_Bool SAL_CALL AccessibleStateSetHelper::isEmpty ()
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->IsEmpty();
@@ -176,7 +165,6 @@ sal_Bool SAL_CALL AccessibleStateSetHelper::isEmpty ()
state set and <FALSE/> otherwise.
*/
sal_Bool SAL_CALL AccessibleStateSetHelper::contains (sal_Int16 aState)
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->Contains(aState);
@@ -199,7 +187,6 @@ sal_Bool SAL_CALL AccessibleStateSetHelper::contains (sal_Int16 aState)
*/
sal_Bool SAL_CALL AccessibleStateSetHelper::containsAll
(const uno::Sequence<sal_Int16>& rStateSet)
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
sal_Int32 nCount(rStateSet.getLength());
@@ -215,21 +202,18 @@ sal_Bool SAL_CALL AccessibleStateSetHelper::containsAll
}
uno::Sequence<sal_Int16> SAL_CALL AccessibleStateSetHelper::getStates()
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard(maMutex);
return mpHelperImpl->GetStates();
}
void AccessibleStateSetHelper::AddState(sal_Int16 aState)
- throw (uno::RuntimeException)
{
osl::MutexGuard aGuard (maMutex);
mpHelperImpl->AddState(aState);
}
void AccessibleStateSetHelper::RemoveState(sal_Int16 aState)
- throw (uno::RuntimeException)
{
osl::MutexGuard aGuard (maMutex);
mpHelperImpl->RemoveState(aState);
@@ -238,7 +222,6 @@ void AccessibleStateSetHelper::RemoveState(sal_Int16 aState)
//===== XTypeProvider =======================================================
uno::Sequence< css::uno::Type> AccessibleStateSetHelper::getTypes()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< css::uno::Type> aTypeSequence {
cppu::UnoType<XAccessibleStateSet>::get(),
@@ -248,7 +231,6 @@ uno::Sequence< css::uno::Type> AccessibleStateSetHelper::getTypes()
}
uno::Sequence<sal_Int8> SAL_CALL AccessibleStateSetHelper::getImplementationId()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
}
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index b40d0ccde3c9..ae468e78d701 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -73,10 +73,10 @@ namespace utl{
ConfigChangeListener_Impl(ConfigItem& rItem, const Sequence< OUString >& rNames);
//XChangesListener
- virtual void SAL_CALL changesOccurred( const ChangesEvent& Event ) throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL changesOccurred( const ChangesEvent& Event ) override;
//XEventListener
- virtual void SAL_CALL disposing( const EventObject& Source ) throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const EventObject& Source ) override;
};
}
@@ -116,7 +116,7 @@ static bool lcl_Find(
return false;
}
-void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) throw(RuntimeException, std::exception)
+void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent )
{
const ElementChange* pElementChanges = rEvent.Changes.getConstArray();
@@ -145,7 +145,7 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) th
}
}
-void ConfigChangeListener_Impl::disposing( const EventObject& /*rSource*/ ) throw(RuntimeException, std::exception)
+void ConfigChangeListener_Impl::disposing( const EventObject& /*rSource*/ )
{
pParent->RemoveChangesListener();
}
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index a2faf43afbf3..0965269b44e6 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -99,19 +99,19 @@ public:
/// @throws css::container::NoSuchElementException
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
- void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement );
/// @throws css::container::NoSuchElementException
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
- css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ css::uno::Any SAL_CALL getByName( const OUString& aName );
/// @throws css::uno::RuntimeException
- css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (css::uno::RuntimeException);
+ css::uno::Sequence< OUString > SAL_CALL getElementNames( );
/// @throws css::uno::RuntimeException
- bool SAL_CALL hasByName( const OUString& aName ) throw (css::uno::RuntimeException);
+ bool SAL_CALL hasByName( const OUString& aName );
/// @throws css::uno::RuntimeException
- static css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException);
+ static css::uno::Type SAL_CALL getElementType( );
/// @throws css::uno::RuntimeException
- bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException);
+ bool SAL_CALL hasElements( );
OUString GetEventName( GlobalEventId nID );
};
@@ -236,7 +236,7 @@ void GlobalEventConfig_Impl::initBindingInfo()
}
}
-void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, const Any& aElement ) throw (lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException)
+void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, const Any& aElement )
{
Sequence< beans::PropertyValue > props;
//DF should we prepopulate the hash with a list of valid event Names?
@@ -256,7 +256,7 @@ void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, cons
SetModified();
}
-Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException)
+Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName )
{
Any aRet;
Sequence< beans::PropertyValue > props(2);
@@ -282,12 +282,12 @@ Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName ) throw (c
return aRet;
}
-Sequence< OUString > SAL_CALL GlobalEventConfig_Impl::getElementNames( ) throw (RuntimeException)
+Sequence< OUString > SAL_CALL GlobalEventConfig_Impl::getElementNames( )
{
return uno::Sequence< OUString >(m_supportedEvents.data(), SupportedEventsVector::size());
}
-bool SAL_CALL GlobalEventConfig_Impl::hasByName( const OUString& aName ) throw (RuntimeException)
+bool SAL_CALL GlobalEventConfig_Impl::hasByName( const OUString& aName )
{
if ( m_eventBindingHash.find( aName ) != m_eventBindingHash.end() )
return true;
@@ -301,13 +301,13 @@ bool SAL_CALL GlobalEventConfig_Impl::hasByName( const OUString& aName ) throw (
return false;
}
-Type SAL_CALL GlobalEventConfig_Impl::getElementType( ) throw (RuntimeException)
+Type SAL_CALL GlobalEventConfig_Impl::getElementType( )
{
//DF definitely not sure about this??
return cppu::UnoType<Sequence<beans::PropertyValue>>::get();
}
-bool SAL_CALL GlobalEventConfig_Impl::hasElements( ) throw (RuntimeException)
+bool SAL_CALL GlobalEventConfig_Impl::hasElements( )
{
return ( m_eventBindingHash.empty() );
}
@@ -347,39 +347,39 @@ GlobalEventConfig::~GlobalEventConfig()
}
}
-Reference< container::XNameReplace > SAL_CALL GlobalEventConfig::getEvents() throw (css::uno::RuntimeException, std::exception)
+Reference< container::XNameReplace > SAL_CALL GlobalEventConfig::getEvents()
{
MutexGuard aGuard( GetOwnStaticMutex() );
Reference< container::XNameReplace > ret(this);
return ret;
}
-void SAL_CALL GlobalEventConfig::replaceByName( const OUString& aName, const Any& aElement ) throw (lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception)
+void SAL_CALL GlobalEventConfig::replaceByName( const OUString& aName, const Any& aElement )
{
MutexGuard aGuard( GetOwnStaticMutex() );
m_pImpl->replaceByName( aName, aElement );
}
-Any SAL_CALL GlobalEventConfig::getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception)
+Any SAL_CALL GlobalEventConfig::getByName( const OUString& aName )
{
MutexGuard aGuard( GetOwnStaticMutex() );
return m_pImpl->getByName( aName );
}
-Sequence< OUString > SAL_CALL GlobalEventConfig::getElementNames( ) throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL GlobalEventConfig::getElementNames( )
{
MutexGuard aGuard( GetOwnStaticMutex() );
return m_pImpl->getElementNames( );
}
-sal_Bool SAL_CALL GlobalEventConfig::hasByName( const OUString& aName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL GlobalEventConfig::hasByName( const OUString& aName )
{
MutexGuard aGuard( GetOwnStaticMutex() );
return m_pImpl->hasByName( aName );
}
-Type SAL_CALL GlobalEventConfig::getElementType( ) throw (RuntimeException, std::exception)
+Type SAL_CALL GlobalEventConfig::getElementType( )
{
MutexGuard aGuard( GetOwnStaticMutex() );
return GlobalEventConfig_Impl::getElementType( );
}
-sal_Bool SAL_CALL GlobalEventConfig::hasElements( ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL GlobalEventConfig::hasElements( )
{
MutexGuard aGuard( GetOwnStaticMutex() );
return m_pImpl->hasElements( );
diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx
index 43a239b7e1fd..76e06437bf5e 100644
--- a/unotools/source/config/itemholder1.cxx
+++ b/unotools/source/config/itemholder1.cxx
@@ -88,7 +88,6 @@ void ItemHolder1::holdConfigItem(EItem eItem)
}
void SAL_CALL ItemHolder1::disposing(const css::lang::EventObject&)
- throw(css::uno::RuntimeException, std::exception)
{
css::uno::Reference< css::uno::XInterface > xSelfHold(static_cast< css::lang::XEventListener* >(this), css::uno::UNO_QUERY);
impl_releaseAllItems();
diff --git a/unotools/source/config/itemholder1.hxx b/unotools/source/config/itemholder1.hxx
index 9a1626dadc88..c181c579da1f 100644
--- a/unotools/source/config/itemholder1.hxx
+++ b/unotools/source/config/itemholder1.hxx
@@ -43,8 +43,7 @@ class ItemHolder1 : private ItemHolderMutexBase
// uno interface
public:
- virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) override;
// helper
private:
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index 747997dcca61..6459495157f7 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -76,9 +76,9 @@ public:
explicit ChangeListener (Impl& rParent): m_rParent(rParent) { }
// XChangesListener
- virtual void SAL_CALL changesOccurred (util::ChangesEvent const& Event) throw(uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL changesOccurred (util::ChangesEvent const& Event) override;
// XEventListener
- virtual void SAL_CALL disposing (lang::EventObject const& Source) throw(uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing (lang::EventObject const& Source) override;
private:
Impl& m_rParent;
@@ -102,13 +102,13 @@ private:
uno::Reference<beans::XPropertySet> m_xData;
};
-void SvtUserOptions::ChangeListener::changesOccurred (util::ChangesEvent const& rEvent) throw(uno::RuntimeException, std::exception)
+void SvtUserOptions::ChangeListener::changesOccurred (util::ChangesEvent const& rEvent)
{
if (rEvent.Changes.getLength())
m_rParent.Notify();
}
-void SvtUserOptions::ChangeListener::disposing (lang::EventObject const& rSource) throw(uno::RuntimeException, std::exception)
+void SvtUserOptions::ChangeListener::disposing (lang::EventObject const& rSource)
{
try
{
diff --git a/unotools/source/misc/ServiceDocumenter.cxx b/unotools/source/misc/ServiceDocumenter.cxx
index 7b90b57ebfcc..f1d1500ccb74 100644
--- a/unotools/source/misc/ServiceDocumenter.cxx
+++ b/unotools/source/misc/ServiceDocumenter.cxx
@@ -16,7 +16,6 @@ using lang::XServiceInfo;
using lang::XTypeProvider;
void unotools::misc::ServiceDocumenter::showCoreDocs(const Reference<XServiceInfo>& xService)
- throw (css::uno::RuntimeException, std::exception)
{
if(!xService.is())
return;
@@ -26,7 +25,6 @@ void unotools::misc::ServiceDocumenter::showCoreDocs(const Reference<XServiceInf
}
void unotools::misc::ServiceDocumenter::showInterfaceDocs(const Reference<XTypeProvider>& xTypeProvider)
- throw (css::uno::RuntimeException, std::exception)
{
if(!xTypeProvider.is())
return;
@@ -43,7 +41,6 @@ void unotools::misc::ServiceDocumenter::showInterfaceDocs(const Reference<XTypeP
}
void unotools::misc::ServiceDocumenter::showServiceDocs(const Reference<XServiceInfo>& xService)
- throw (css::uno::RuntimeException, std::exception)
{
if(!xService.is())
return;
diff --git a/unotools/source/misc/ServiceDocumenter.hxx b/unotools/source/misc/ServiceDocumenter.hxx
index b600c5ff03be..a0701ce32a02 100644
--- a/unotools/source/misc/ServiceDocumenter.hxx
+++ b/unotools/source/misc/ServiceDocumenter.hxx
@@ -25,17 +25,17 @@ class ServiceDocumenter : public ::cppu::WeakImplHelper<
, m_sServiceBaseUrl("http://api.libreoffice.org/docs/idl/ref")
{};
// XServiceDocumenter
- virtual ::rtl::OUString SAL_CALL getCoreBaseUrl() throw (css::uno::RuntimeException, std::exception) override
+ virtual ::rtl::OUString SAL_CALL getCoreBaseUrl() override
{ return m_sCoreBaseUrl; };
- virtual void SAL_CALL setCoreBaseUrl( const ::rtl::OUString& sCoreBaseUrl ) throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setCoreBaseUrl( const ::rtl::OUString& sCoreBaseUrl ) override
{ m_sCoreBaseUrl = sCoreBaseUrl; };
- virtual ::rtl::OUString SAL_CALL getServiceBaseUrl() throw (css::uno::RuntimeException, std::exception) override
+ virtual ::rtl::OUString SAL_CALL getServiceBaseUrl() override
{ return m_sServiceBaseUrl; };
- virtual void SAL_CALL setServiceBaseUrl( const ::rtl::OUString& sServiceBaseUrl ) throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setServiceBaseUrl( const ::rtl::OUString& sServiceBaseUrl ) override
{ m_sServiceBaseUrl = sServiceBaseUrl; };
- virtual void SAL_CALL showServiceDocs( const ::css::uno::Reference< ::css::lang::XServiceInfo >& xService) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL showInterfaceDocs( const ::css::uno::Reference< ::css::lang::XTypeProvider >& xTypeProvider ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL showCoreDocs( const ::css::uno::Reference< ::css::lang::XServiceInfo >& xService) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL showServiceDocs( const ::css::uno::Reference< ::css::lang::XServiceInfo >& xService) override;
+ virtual void SAL_CALL showInterfaceDocs( const ::css::uno::Reference< ::css::lang::XTypeProvider >& xTypeProvider ) override;
+ virtual void SAL_CALL showCoreDocs( const ::css::uno::Reference< ::css::lang::XServiceInfo >& xService) override;
protected:
virtual ~ServiceDocumenter() override
{};
diff --git a/unotools/source/misc/ZipPackageHelper.cxx b/unotools/source/misc/ZipPackageHelper.cxx
index 0656c45f29d8..763d01c222ac 100644
--- a/unotools/source/misc/ZipPackageHelper.cxx
+++ b/unotools/source/misc/ZipPackageHelper.cxx
@@ -105,7 +105,6 @@ Reference< XInterface >& ZipPackageHelper::getRootFolder()
Reference< XInterface > ZipPackageHelper::addFolder( Reference< XInterface >& xRootFolder,
const OUString& rName )
- throw( css::uno::Exception, std::exception )
{
if ( rName == ".." || rName == "." )
throw lang::IllegalArgumentException();
@@ -165,7 +164,6 @@ void ZipPackageHelper::addFolderWithContent( Reference< XInterface >& xRootFolde
void ZipPackageHelper::addFile( css::uno::Reference< css::uno::XInterface >& xRootFolder,
const OUString& rSourceFile )
- throw( Exception, std::exception )
{
OUString aFileURL( rSourceFile );
diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx
index 18f352ff3b40..94804c921a10 100644
--- a/unotools/source/misc/closeveto.cxx
+++ b/unotools/source/misc/closeveto.cxx
@@ -51,11 +51,11 @@ namespace utl
}
// XCloseListener
- virtual void SAL_CALL queryClosing( const EventObject& Source, sal_Bool GetsOwnership ) throw (CloseVetoException, RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyClosing( const EventObject& Source ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryClosing( const EventObject& Source, sal_Bool GetsOwnership ) override;
+ virtual void SAL_CALL notifyClosing( const EventObject& Source ) override;
// XEventListener
- virtual void SAL_CALL disposing( const EventObject& Source) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const EventObject& Source) override;
bool hasOwnership() const { return m_bHasOwnership; }
@@ -68,7 +68,7 @@ namespace utl
bool m_bHasOwnership;
};
- void SAL_CALL CloseListener_Impl::queryClosing( const EventObject& i_source, sal_Bool i_deliverOwnership ) throw (CloseVetoException, RuntimeException, std::exception)
+ void SAL_CALL CloseListener_Impl::queryClosing( const EventObject& i_source, sal_Bool i_deliverOwnership )
{
(void)i_source;
@@ -78,12 +78,12 @@ namespace utl
throw CloseVetoException();
}
- void SAL_CALL CloseListener_Impl::notifyClosing( const EventObject& i_source ) throw (RuntimeException, std::exception)
+ void SAL_CALL CloseListener_Impl::notifyClosing( const EventObject& i_source )
{
(void)i_source;
}
- void SAL_CALL CloseListener_Impl::disposing( const EventObject& i_source ) throw (RuntimeException, std::exception)
+ void SAL_CALL CloseListener_Impl::disposing( const EventObject& i_source )
{
(void)i_source;
}
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx
index 4d27a6d49208..be4f1b87bdfc 100644
--- a/unotools/source/misc/desktopterminationobserver.cxx
+++ b/unotools/source/misc/desktopterminationobserver.cxx
@@ -67,11 +67,11 @@ namespace utl
private:
// XTerminateListener
- virtual void SAL_CALL queryTermination( const EventObject& Event ) throw (TerminationVetoException, RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyTermination( const EventObject& Event ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryTermination( const EventObject& Event ) override;
+ virtual void SAL_CALL notifyTermination( const EventObject& Event ) override;
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
};
OObserverImpl::OObserverImpl()
@@ -105,7 +105,7 @@ namespace utl
}
}
- void SAL_CALL OObserverImpl::queryTermination( const EventObject& /*Event*/ ) throw (TerminationVetoException, RuntimeException, std::exception)
+ void SAL_CALL OObserverImpl::queryTermination( const EventObject& /*Event*/ )
{
Listeners aToNotify;
{
@@ -123,7 +123,7 @@ namespace utl
}
}
- void SAL_CALL OObserverImpl::notifyTermination( const EventObject& /*Event*/ ) throw (RuntimeException, std::exception)
+ void SAL_CALL OObserverImpl::notifyTermination( const EventObject& /*Event*/ )
{
// get the listeners
Listeners aToNotify;
@@ -150,7 +150,7 @@ namespace utl
}
}
- void SAL_CALL OObserverImpl::disposing( const EventObject& /*Event*/ ) throw (RuntimeException, std::exception)
+ void SAL_CALL OObserverImpl::disposing( const EventObject& /*Event*/ )
{
#if OSL_DEBUG_LEVEL > 0
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index f33811a463a6..07a24d88705a 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -50,7 +50,7 @@ namespace utl
const Reference< XComponent >& getComponent() const { return m_xComponent; }
protected:
- virtual void SAL_CALL disposing( const EventObject& _rSource ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const EventObject& _rSource ) override;
};
OEventListenerImpl::OEventListenerImpl( OEventListenerAdapter* _pAdapter, const Reference< XComponent >& _rxComp )
@@ -79,7 +79,7 @@ namespace utl
}
}
- void SAL_CALL OEventListenerImpl::disposing( const EventObject& _rSource ) throw (RuntimeException, std::exception)
+ void SAL_CALL OEventListenerImpl::disposing( const EventObject& _rSource )
{
Reference< XEventListener > xDeleteUponLeaving = m_xKeepMeAlive;
m_xKeepMeAlive.clear();
diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx
index 5010164ec6fb..68d9f030e10e 100644
--- a/unotools/source/misc/mediadescriptor.cxx
+++ b/unotools/source/misc/mediadescriptor.cxx
@@ -527,7 +527,6 @@ bool MediaDescriptor::impl_addInputStream( bool bLockFile )
}
bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference< css::io::XInputStream >& _rxPostData )
- throw(css::uno::RuntimeException)
{
if ( !_rxPostData.is() )
throw css::lang::IllegalArgumentException("Found invalid PostData.",
@@ -597,7 +596,6 @@ bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference< cs
/*-----------------------------------------------*/
bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool bLockFile )
- throw(css::uno::RuntimeException)
{
OUString referer(getUnpackedValueOrDefault(PROP_REFERRER(), OUString()));
if (SvtSecurityOptions().isUntrustedReferer(referer)) {
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index f4a2ae4536b9..fe44e5d441be 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -87,11 +87,11 @@ namespace utl
virtual ~CloseableComponentImpl() override;
// XCloseListener overridables
- virtual void SAL_CALL queryClosing( const EventObject& Source, sal_Bool GetsOwnership ) throw (CloseVetoException, RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyClosing( const EventObject& Source ) throw (RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryClosing( const EventObject& Source, sal_Bool GetsOwnership ) override;
+ virtual void SAL_CALL notifyClosing( const EventObject& Source ) override;
// XEventListener overridables
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
private:
/** starts or stops being a CloseListener at the component
@@ -158,7 +158,7 @@ namespace utl
}
}
- void SAL_CALL CloseableComponentImpl::queryClosing( const EventObject& Source, sal_Bool /*GetsOwnership*/ ) throw (CloseVetoException, RuntimeException, std::exception)
+ void SAL_CALL CloseableComponentImpl::queryClosing( const EventObject& Source, sal_Bool /*GetsOwnership*/ )
{
// as long as we live, somebody wants to keep the object alive. So, veto the
// closing
@@ -166,7 +166,7 @@ namespace utl
throw CloseVetoException();
}
- void SAL_CALL CloseableComponentImpl::notifyClosing( const EventObject& Source ) throw (RuntimeException, std::exception)
+ void SAL_CALL CloseableComponentImpl::notifyClosing( const EventObject& Source )
{
DBG_ASSERT( Source.Source == m_xCloseable, "CloseableComponentImpl::notifyClosing: where did this come from?" );
@@ -176,7 +176,7 @@ namespace utl
OSL_FAIL( "CloseableComponentImpl::notifyClosing: unreachable!" );
}
- void SAL_CALL CloseableComponentImpl::disposing( const EventObject& Source ) throw (RuntimeException, std::exception)
+ void SAL_CALL CloseableComponentImpl::disposing( const EventObject& Source )
{
DBG_ASSERT( Source.Source == m_xCloseable, "CloseableComponentImpl::disposing: where did this come from?" );
OSL_FAIL( "CloseableComponentImpl::disposing: unreachable!" );
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index e2881b7b9a55..d3f41ad5e286 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -23,7 +23,6 @@ namespace utl
{
sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
- throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception)
{
if (!m_xLockBytes.Is())
throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this));
@@ -49,18 +48,18 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >&
return nRead;
}
-void SAL_CALL OInputStreamHelper::seek( sal_Int64 location ) throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OInputStreamHelper::seek( sal_Int64 location )
{
::osl::MutexGuard aGuard( m_aMutex );
m_nActPos = location;
}
-sal_Int64 SAL_CALL OInputStreamHelper::getPosition( ) throw(css::io::IOException, css::uno::RuntimeException, std::exception)
+sal_Int64 SAL_CALL OInputStreamHelper::getPosition( )
{
return m_nActPos;
}
-sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(css::io::IOException, css::uno::RuntimeException, std::exception)
+sal_Int64 SAL_CALL OInputStreamHelper::getLength( )
{
if (!m_xLockBytes.Is())
return 0;
@@ -73,14 +72,12 @@ sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(css::io::IOException,
sal_Int32 SAL_CALL OInputStreamHelper::readSomeBytes(css::uno::Sequence< sal_Int8 >& aData,
sal_Int32 nMaxBytesToRead)
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception)
{
// read all data desired
return readBytes(aData, nMaxBytesToRead);
}
void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip)
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
@@ -93,7 +90,6 @@ void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip)
}
sal_Int32 SAL_CALL OInputStreamHelper::available()
- throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
@@ -103,7 +99,6 @@ sal_Int32 SAL_CALL OInputStreamHelper::available()
}
void SAL_CALL OInputStreamHelper::closeInput()
- throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx
index 59d751d3758e..fea638ed26a4 100644
--- a/unotools/source/streaming/streamwrap.cxx
+++ b/unotools/source/streaming/streamwrap.cxx
@@ -46,7 +46,6 @@ OInputStreamWrapper::~OInputStreamWrapper()
}
sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
- throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
{
checkConnected();
@@ -68,7 +67,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 >
return nRead;
}
-sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
+sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead)
{
checkError();
@@ -84,7 +83,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(css::uno::Sequence< sal_In
return readBytes(aData, nMaxBytesToRead);
}
-void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
+void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip)
{
::osl::MutexGuard aGuard( m_aMutex );
checkError();
@@ -93,7 +92,7 @@ void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( css:
checkError();
}
-sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( css::io::NotConnectedException, css::uno::RuntimeException, std::exception )
+sal_Int32 SAL_CALL OInputStreamWrapper::available()
{
::osl::MutexGuard aGuard( m_aMutex );
checkConnected();
@@ -111,7 +110,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( css::io::NotConnected
return nAvailable;
}
-void SAL_CALL OInputStreamWrapper::closeInput() throw( css::io::NotConnectedException, css::uno::RuntimeException, std::exception )
+void SAL_CALL OInputStreamWrapper::closeInput()
{
::osl::MutexGuard aGuard( m_aMutex );
checkConnected();
@@ -151,7 +150,7 @@ OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(SvStream* _pStream, boo
SetStream( _pStream, _bOwner );
}
-void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException, std::exception)
+void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation )
{
::osl::MutexGuard aGuard( m_aMutex );
checkConnected();
@@ -160,7 +159,7 @@ void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (I
checkError();
}
-sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition( ) throw (IOException, RuntimeException, std::exception)
+sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition( )
{
::osl::MutexGuard aGuard( m_aMutex );
checkConnected();
@@ -170,7 +169,7 @@ sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition( ) throw (IOExcepti
return (sal_Int64)nPos;
}
-sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength( ) throw (IOException, RuntimeException, std::exception)
+sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength( )
{
::osl::MutexGuard aGuard( m_aMutex );
checkConnected();
@@ -195,7 +194,7 @@ OOutputStreamWrapper::OOutputStreamWrapper(SvStream& _rStream):
OOutputStreamWrapper::~OOutputStreamWrapper() {}
-void SAL_CALL OOutputStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
+void SAL_CALL OOutputStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData)
{
sal_uInt32 nWritten = rStream.WriteBytes(aData.getConstArray(), aData.getLength());
ErrCode err = rStream.GetError();
@@ -207,13 +206,13 @@ void SAL_CALL OOutputStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int
}
}
-void SAL_CALL OOutputStreamWrapper::flush() throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
+void SAL_CALL OOutputStreamWrapper::flush()
{
rStream.Flush();
checkError();
}
-void SAL_CALL OOutputStreamWrapper::closeOutput() throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
+void SAL_CALL OOutputStreamWrapper::closeOutput()
{
}
@@ -233,7 +232,7 @@ OSeekableOutputStreamWrapper::OSeekableOutputStreamWrapper(SvStream& _rStream)
OSeekableOutputStreamWrapper::~OSeekableOutputStreamWrapper() {}
-Any SAL_CALL OSeekableOutputStreamWrapper::queryInterface( const Type& _rType ) throw (RuntimeException, std::exception)
+Any SAL_CALL OSeekableOutputStreamWrapper::queryInterface( const Type& _rType )
{
Any aReturn = OOutputStreamWrapper::queryInterface(_rType);
if (!aReturn.hasValue())
@@ -251,20 +250,20 @@ void SAL_CALL OSeekableOutputStreamWrapper::release( ) throw ()
OOutputStreamWrapper::release();
}
-void SAL_CALL OSeekableOutputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException, std::exception)
+void SAL_CALL OSeekableOutputStreamWrapper::seek( sal_Int64 _nLocation )
{
rStream.Seek((sal_uInt32)_nLocation);
checkError();
}
-sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getPosition( ) throw (IOException, RuntimeException, std::exception)
+sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getPosition( )
{
sal_uInt32 nPos = rStream.Tell();
checkError();
return (sal_Int64)nPos;
}
-sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getLength( ) throw (IOException, RuntimeException, std::exception)
+sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getLength( )
{
sal_uInt32 nCurrentPos = rStream.Tell();
checkError();
@@ -285,17 +284,17 @@ OStreamWrapper::OStreamWrapper(SvStream& _rStream)
SetStream( &_rStream, false );
}
-css::uno::Reference< css::io::XInputStream > SAL_CALL OStreamWrapper::getInputStream( ) throw (css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::io::XInputStream > SAL_CALL OStreamWrapper::getInputStream( )
{
return this;
}
-css::uno::Reference< css::io::XOutputStream > SAL_CALL OStreamWrapper::getOutputStream( ) throw (css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::io::XOutputStream > SAL_CALL OStreamWrapper::getOutputStream( )
{
return this;
}
-void SAL_CALL OStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData)
{
sal_uInt32 nWritten = m_pSvStream->WriteBytes(aData.getConstArray(), aData.getLength());
ErrCode err = m_pSvStream->GetError();
@@ -307,18 +306,18 @@ void SAL_CALL OStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& a
}
}
-void SAL_CALL OStreamWrapper::flush() throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OStreamWrapper::flush()
{
m_pSvStream->Flush();
if (m_pSvStream->GetError() != ERRCODE_NONE)
throw css::io::NotConnectedException(OUString(),static_cast<css::uno::XWeak*>(this));
}
-void SAL_CALL OStreamWrapper::closeOutput() throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OStreamWrapper::closeOutput()
{
}
-void SAL_CALL OStreamWrapper::truncate() throw(css::io::IOException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OStreamWrapper::truncate()
{
m_pSvStream->SetStreamSize(0);
}
diff --git a/unotools/source/ucbhelper/XTempFile.hxx b/unotools/source/ucbhelper/XTempFile.hxx
index 38b38167547b..43150b675f07 100644
--- a/unotools/source/ucbhelper/XTempFile.hxx
+++ b/unotools/source/ucbhelper/XTempFile.hxx
@@ -63,59 +63,39 @@ public:
//Methods
// XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
virtual void SAL_CALL acquire( )
throw () override;
virtual void SAL_CALL release( )
throw () override;
// XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
// XTempFile
- virtual sal_Bool SAL_CALL getRemoveFile()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setRemoveFile( sal_Bool _removefile )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getUri()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getResourceName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL getRemoveFile() override;
+ virtual void SAL_CALL setRemoveFile( sal_Bool _removefile ) override;
+ virtual OUString SAL_CALL getUri() override;
+ virtual OUString SAL_CALL getResourceName() override;
// XInputStream
- virtual ::sal_Int32 SAL_CALL readBytes( css::uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nBytesToRead )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nMaxBytesToRead )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL skipBytes( ::sal_Int32 nBytesToSkip )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL available( )
- throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL closeInput( )
- throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual ::sal_Int32 SAL_CALL readBytes( css::uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nBytesToRead ) override;
+ virtual ::sal_Int32 SAL_CALL readSomeBytes( css::uno::Sequence< ::sal_Int8 >& aData, ::sal_Int32 nMaxBytesToRead ) override;
+ virtual void SAL_CALL skipBytes( ::sal_Int32 nBytesToSkip ) override;
+ virtual ::sal_Int32 SAL_CALL available( ) override;
+ virtual void SAL_CALL closeInput( ) override;
// XOutputStream
- virtual void SAL_CALL writeBytes( const css::uno::Sequence< ::sal_Int8 >& aData )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL flush( )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL closeOutput( )
- throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL writeBytes( const css::uno::Sequence< ::sal_Int8 >& aData ) override;
+ virtual void SAL_CALL flush( ) override;
+ virtual void SAL_CALL closeOutput( ) override;
// XSeekable
- virtual void SAL_CALL seek( sal_Int64 location )
- throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int64 SAL_CALL getPosition( )
- throw (css::io::IOException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int64 SAL_CALL getLength( )
- throw (css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL seek( sal_Int64 location ) override;
+ virtual sal_Int64 SAL_CALL getPosition( ) override;
+ virtual sal_Int64 SAL_CALL getLength( ) override;
// XStream
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream( )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream( ) override;
+ virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream( ) override;
// XTruncate
- virtual void SAL_CALL truncate()
- throw (css::io::IOException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL truncate() override;
virtual ~OTempFileService () override;
};
diff --git a/unotools/source/ucbhelper/progresshandlerwrap.cxx b/unotools/source/ucbhelper/progresshandlerwrap.cxx
index f3edf6185dfd..05e6a6131518 100644
--- a/unotools/source/ucbhelper/progresshandlerwrap.cxx
+++ b/unotools/source/ucbhelper/progresshandlerwrap.cxx
@@ -49,7 +49,6 @@ bool getStatusFromAny_Impl( const Any& aAny, OUString& aText, sal_Int32& nNum )
}
void SAL_CALL ProgressHandlerWrap::push( const Any& Status )
- throw( RuntimeException, std::exception )
{
if( !m_xStatusIndicator.is() )
return;
@@ -62,7 +61,6 @@ void SAL_CALL ProgressHandlerWrap::push( const Any& Status )
}
void SAL_CALL ProgressHandlerWrap::update( const Any& Status )
- throw( RuntimeException, std::exception )
{
if( !m_xStatusIndicator.is() )
return;
@@ -78,7 +76,6 @@ void SAL_CALL ProgressHandlerWrap::update( const Any& Status )
}
void SAL_CALL ProgressHandlerWrap::pop()
- throw( RuntimeException, std::exception )
{
if( m_xStatusIndicator.is() )
m_xStatusIndicator->end();
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index bb885a3482ee..8c302d82b4af 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -79,16 +79,16 @@ public:
{}
// XActiveDataControl.
- virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL removeListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL start() throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL terminate() throw(RuntimeException, std::exception) override
+ virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) override {}
+ virtual void SAL_CALL removeListener ( const Reference<XStreamListener> &/*rxListener*/) override {}
+ virtual void SAL_CALL start() override {}
+ virtual void SAL_CALL terminate() override
{ m_xLockBytes->terminate_Impl(); }
// XActiveDataSink.
- virtual void SAL_CALL setInputStream ( const Reference<XInputStream> &rxInputStream) throw(RuntimeException, std::exception) override
+ virtual void SAL_CALL setInputStream ( const Reference<XInputStream> &rxInputStream) override
{ m_xLockBytes->setInputStream_Impl (rxInputStream); }
- virtual Reference<XInputStream> SAL_CALL getInputStream() throw(RuntimeException, std::exception) override
+ virtual Reference<XInputStream> SAL_CALL getInputStream() override
{ return m_xLockBytes->getInputStream_Impl(); }
};
@@ -106,16 +106,16 @@ public:
{}
// XActiveDataControl.
- virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL removeListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL start() throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL terminate() throw(RuntimeException, std::exception) override
+ virtual void SAL_CALL addListener ( const Reference<XStreamListener> &/*rxListener*/) override {}
+ virtual void SAL_CALL removeListener ( const Reference<XStreamListener> &/*rxListener*/) override {}
+ virtual void SAL_CALL start() override {}
+ virtual void SAL_CALL terminate() override
{ m_xLockBytes->terminate_Impl(); }
// XActiveDataStreamer
- virtual void SAL_CALL setStream( const Reference< XStream >& aStream ) throw(RuntimeException, std::exception) override
+ virtual void SAL_CALL setStream( const Reference< XStream >& aStream ) override
{ m_xStream = aStream; m_xLockBytes->setStream_Impl( aStream ); }
- virtual Reference< XStream > SAL_CALL getStream() throw(RuntimeException, std::exception) override
+ virtual Reference< XStream > SAL_CALL getStream() override
{ return m_xStream; }
};
@@ -134,10 +134,10 @@ public:
, m_xProgressHandler( rxProgressHandler )
{}
- virtual Reference<XInteractionHandler> SAL_CALL getInteractionHandler() throw (RuntimeException, std::exception) override
+ virtual Reference<XInteractionHandler> SAL_CALL getInteractionHandler() override
{ return m_xInteractionHandler; }
- virtual Reference<XProgressHandler> SAL_CALL getProgressHandler() throw (RuntimeException, std::exception) override
+ virtual Reference<XProgressHandler> SAL_CALL getProgressHandler() override
{ return m_xProgressHandler; }
};
@@ -153,11 +153,11 @@ public:
: m_xLockBytes( rRef )
{}
- virtual void SAL_CALL disposing ( const EventObject &/*rEvent*/) throw(RuntimeException, std::exception) override {}
- virtual void SAL_CALL propertiesChange ( const Sequence<PropertyChangeEvent> &rEvent) throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing ( const EventObject &/*rEvent*/) override {}
+ virtual void SAL_CALL propertiesChange ( const Sequence<PropertyChangeEvent> &rEvent) override;
};
-void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequence<PropertyChangeEvent> &rEvent) throw(RuntimeException, std::exception)
+void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequence<PropertyChangeEvent> &rEvent)
{
sal_Int32 i, n = rEvent.getLength();
for (i = 0; i < n; i++)
@@ -225,11 +225,7 @@ public:
Reference < XContent > const & xContent,
Reference < XInteractionHandler > const & xInteract,
const Command& rArg
- )
- throw(
- ContentCreationException,
- RuntimeException
- );
+ );
enum ResultType {
NORESULT,
@@ -345,16 +341,11 @@ public:
virtual void SAL_CALL
setStream(
const Reference< XStream >& aStream
- )
- throw(
- RuntimeException, std::exception
- ) override;
+ ) override;
virtual Reference<XStream> SAL_CALL
getStream (
void
- ) throw(
- RuntimeException, std::exception
) override
{
osl::MutexGuard aGuard(m_aMutex);
@@ -379,16 +370,11 @@ public:
virtual void SAL_CALL
setInputStream (
const Reference<XInputStream> &rxInputStream
- )
- throw(
- RuntimeException, std::exception
- ) override;
+ ) override;
virtual Reference<XInputStream> SAL_CALL
getInputStream (
void
- ) throw(
- RuntimeException, std::exception
) override
{
osl::MutexGuard aGuard(m_aMutex);
@@ -411,9 +397,6 @@ void SAL_CALL
ModeratorsActiveDataSink::setInputStream (
const Reference<XInputStream> &rxInputStream
)
- throw(
- RuntimeException, std::exception
- )
{
m_aModerator.setInputStream(rxInputStream);
osl::MutexGuard aGuard(m_aMutex);
@@ -432,9 +415,6 @@ void SAL_CALL
ModeratorsActiveDataStreamer::setStream (
const Reference<XStream> &rxStream
)
- throw(
- RuntimeException, std::exception
- )
{
m_aModerator.setStream(rxStream);
osl::MutexGuard aGuard(m_aMutex);
@@ -449,8 +429,7 @@ public:
explicit ModeratorsInteractionHandler(Moderator &theModerator);
virtual void SAL_CALL
- handle( const Reference<XInteractionRequest >& Request )
- throw (RuntimeException, std::exception) override;
+ handle( const Reference<XInteractionRequest >& Request ) override;
private:
@@ -467,9 +446,6 @@ void SAL_CALL
ModeratorsInteractionHandler::handle(
const Reference<XInteractionRequest >& Request
)
- throw (
- RuntimeException, std::exception
- )
{
// wakes up the mainthread
m_aModerator.handle(Request);
@@ -480,10 +456,6 @@ Moderator::Moderator(
Reference < XInteractionHandler > const & xInteract,
const Command& rArg
)
- throw(
- css::ucb::ContentCreationException,
- css::uno::RuntimeException
- )
: m_aMutex(),
m_aRes(m_aMutex,*this),
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index bcf247ad4696..ac5cfc707dcd 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -51,7 +51,6 @@ OTempFileService::~OTempFileService ()
// XInterface
css::uno::Any SAL_CALL OTempFileService::queryInterface( css::uno::Type const & aType )
-throw ( css::uno::RuntimeException, std::exception )
{
css::uno::Any aResult( OTempFileBase::queryInterface( aType ) );
if (!aResult.hasValue())
@@ -72,7 +71,6 @@ throw ()
// XTypeProvider
css::uno::Sequence< css::uno::Type > SAL_CALL OTempFileService::getTypes( )
-throw ( css::uno::RuntimeException, std::exception )
{
static ::cppu::OTypeCollection* pTypeCollection = nullptr;
if ( pTypeCollection == nullptr )
@@ -93,7 +91,6 @@ throw ( css::uno::RuntimeException, std::exception )
// XTempFile
sal_Bool SAL_CALL OTempFileService::getRemoveFile()
-throw ( css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -106,7 +103,6 @@ throw ( css::uno::RuntimeException, std::exception )
return mbRemoveFile;
};
void SAL_CALL OTempFileService::setRemoveFile( sal_Bool _removefile )
-throw ( css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -120,7 +116,6 @@ throw ( css::uno::RuntimeException, std::exception )
mpTempFile->EnableKillingFile( mbRemoveFile );
};
OUString SAL_CALL OTempFileService::getUri()
-throw ( css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -133,7 +128,6 @@ throw ( css::uno::RuntimeException, std::exception )
};
OUString SAL_CALL OTempFileService::getResourceName()
-throw ( css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -148,7 +142,6 @@ throw ( css::uno::RuntimeException, std::exception )
// XInputStream
sal_Int32 SAL_CALL OTempFileService::readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
-throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
@@ -182,7 +175,6 @@ throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css
return nRead;
}
sal_Int32 SAL_CALL OTempFileService::readSomeBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
-throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
@@ -203,7 +195,6 @@ throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, cs
return readBytes(aData, nMaxBytesToRead);
}
void SAL_CALL OTempFileService::skipBytes( sal_Int32 nBytesToSkip )
-throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
@@ -215,7 +206,6 @@ throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, cs
checkError();
}
sal_Int32 SAL_CALL OTempFileService::available( )
-throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
@@ -230,7 +220,6 @@ throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeE
return nAvailable;
}
void SAL_CALL OTempFileService::closeInput( )
-throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
@@ -251,7 +240,6 @@ throw ( css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeE
// XOutputStream
void SAL_CALL OTempFileService::writeBytes( const css::uno::Sequence< sal_Int8 >& aData )
-throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
@@ -264,7 +252,6 @@ throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, cs
throw css::io::BufferSizeExceededException( OUString(),static_cast < css::uno::XWeak * > ( this ) );
}
void SAL_CALL OTempFileService::flush( )
-throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
@@ -275,7 +262,6 @@ throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, cs
checkError();
}
void SAL_CALL OTempFileService::closeOutput( )
-throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
@@ -337,7 +323,6 @@ void OTempFileService::checkConnected ()
// XSeekable
void SAL_CALL OTempFileService::seek( sal_Int64 nLocation )
-throw ( css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
checkConnected();
@@ -348,7 +333,6 @@ throw ( css::lang::IllegalArgumentException, css::io::IOException, css::uno::Run
checkError();
}
sal_Int64 SAL_CALL OTempFileService::getPosition( )
-throw ( css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
checkConnected();
@@ -358,7 +342,6 @@ throw ( css::io::IOException, css::uno::RuntimeException, std::exception )
return (sal_Int64)nPos;
}
sal_Int64 SAL_CALL OTempFileService::getLength( )
-throw ( css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
checkConnected();
@@ -378,13 +361,11 @@ throw ( css::io::IOException, css::uno::RuntimeException, std::exception )
// XStream
css::uno::Reference< css::io::XInputStream > SAL_CALL OTempFileService::getInputStream()
-throw ( css::uno::RuntimeException, std::exception )
{
return css::uno::Reference< css::io::XInputStream >( *this, css::uno::UNO_QUERY );
}
css::uno::Reference< css::io::XOutputStream > SAL_CALL OTempFileService::getOutputStream()
-throw ( css::uno::RuntimeException, std::exception )
{
return css::uno::Reference< css::io::XOutputStream >( *this, css::uno::UNO_QUERY );
}
@@ -392,7 +373,6 @@ throw ( css::uno::RuntimeException, std::exception )
// XTruncate
void SAL_CALL OTempFileService::truncate()
-throw ( css::io::IOException, css::uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
checkConnected();