summaryrefslogtreecommitdiff
path: root/scripting/source/provider/BrowseNodeFactoryImpl.cxx
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 /scripting/source/provider/BrowseNodeFactoryImpl.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
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 'scripting/source/provider/BrowseNodeFactoryImpl.cxx')
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx74
1 files changed, 23 insertions, 51 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
index c6481a46d660..e74b9f90de99 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
@@ -72,15 +72,13 @@ public:
}
virtual OUString
- SAL_CALL getName()
- throw ( RuntimeException, std::exception ) override
+ SAL_CALL getName() override
{
return m_Name;
}
virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL
- getChildNodes()
- throw ( RuntimeException, std::exception ) override
+ getChildNodes() override
{
std::vector< Sequence< Reference < browse::XBrowseNode > > > seqs;
seqs.reserve( m_Nodes.size() );
@@ -119,8 +117,7 @@ public:
}
virtual sal_Bool SAL_CALL
- hasChildNodes()
- throw ( RuntimeException, std::exception ) override
+ hasChildNodes() override
{
if ( !m_Nodes.empty() )
{
@@ -144,8 +141,7 @@ public:
return false;
}
- virtual sal_Int16 SAL_CALL getType()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Int16 SAL_CALL getType() override
{
return browse::BrowseNodeTypes::CONTAINER;
}
@@ -194,15 +190,13 @@ public:
// XBrowseNode
- virtual OUString SAL_CALL getName()
- throw ( RuntimeException, std::exception ) override
+ virtual OUString SAL_CALL getName() override
{
return m_sNodeName;
}
virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL
- getChildNodes()
- throw ( RuntimeException, std::exception ) override
+ getChildNodes() override
{
if ( m_hBNA == nullptr )
{
@@ -222,14 +216,12 @@ public:
return children;
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return true;
}
- virtual sal_Int16 SAL_CALL getType()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Int16 SAL_CALL getType() override
{
return browse::BrowseNodeTypes::CONTAINER;
}
@@ -418,8 +410,7 @@ public:
}
virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL
- getChildNodes()
- throw ( RuntimeException, std::exception ) override
+ getChildNodes() override
{
if ( hasChildNodes() )
{
@@ -452,29 +443,25 @@ public:
}
}
- virtual sal_Int16 SAL_CALL getType()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Int16 SAL_CALL getType() override
{
return m_xWrappedBrowseNode->getType();
}
virtual OUString
- SAL_CALL getName()
- throw ( RuntimeException, std::exception ) override
+ SAL_CALL getName() override
{
return m_xWrappedBrowseNode->getName();
}
virtual sal_Bool SAL_CALL
- hasChildNodes()
- throw ( RuntimeException, std::exception ) override
+ hasChildNodes() override
{
return m_xWrappedBrowseNode->hasChildNodes();
}
// XInterface
- virtual Any SAL_CALL queryInterface( const Type& aType )
- throw ( css::uno::RuntimeException, std::exception ) override
+ virtual Any SAL_CALL queryInterface( const Type& aType ) override
{
Any aRet = t_BrowseNodeBase::queryInterface( aType );
if ( aRet.hasValue() )
@@ -493,13 +480,11 @@ public:
// XTypeProvider (implemnented by base, but needs to be overridden for
// delegating to aggregate)
- virtual Sequence< Type > SAL_CALL getTypes()
- throw ( css::uno::RuntimeException, std::exception ) override
+ virtual Sequence< Type > SAL_CALL getTypes() override
{
return m_xWrappedTypeProv->getTypes();
}
- virtual Sequence< sal_Int8 > SAL_CALL getImplementationId()
- throw ( css::uno::RuntimeException, std::exception ) override
+ virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() override
{
return css::uno::Sequence<sal_Int8>();
}
@@ -527,8 +512,7 @@ public:
}
virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL
- getChildNodes()
- throw ( RuntimeException, std::exception ) override
+ getChildNodes() override
{
// no need to sort user, share, doc1...docN
//::std::sort( m_vNodes.begin(), m_vNodes.end(), alphaSortForBNodes() );
@@ -541,22 +525,19 @@ public:
return children;
}
- virtual sal_Int16 SAL_CALL getType()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Int16 SAL_CALL getType() override
{
return browse::BrowseNodeTypes::ROOT;
}
virtual OUString
- SAL_CALL getName()
- throw ( RuntimeException, std::exception ) override
+ SAL_CALL getName() override
{
return m_Name;
}
virtual sal_Bool SAL_CALL
- hasChildNodes()
- throw ( RuntimeException, std::exception ) override
+ hasChildNodes() override
{
bool result = true;
if ( m_vNodes.empty() )
@@ -580,15 +561,13 @@ public:
{
}
- virtual OUString SAL_CALL getName()
- throw ( RuntimeException, std::exception ) override
+ virtual OUString SAL_CALL getName() override
{
return OUString("Root");
}
virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL
- getChildNodes()
- throw ( RuntimeException, std::exception ) override
+ getChildNodes() override
{
std::vector< Reference < browse::XBrowseNode > > locnBNs = getAllBrowseNodes( m_xComponentContext );
@@ -604,14 +583,12 @@ public:
return children;
}
- virtual sal_Bool SAL_CALL hasChildNodes()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Bool SAL_CALL hasChildNodes() override
{
return true; // will always be user and share
}
- virtual sal_Int16 SAL_CALL getType()
- throw ( RuntimeException, std::exception ) override
+ virtual sal_Int16 SAL_CALL getType() override
{
return browse::BrowseNodeTypes::CONTAINER;
}
@@ -637,7 +614,6 @@ BrowseNodeFactoryImpl::~BrowseNodeFactoryImpl()
*/
Reference< browse::XBrowseNode > SAL_CALL
BrowseNodeFactoryImpl::createView( sal_Int16 viewType )
- throw (RuntimeException, std::exception)
{
switch( viewType )
{
@@ -652,7 +628,6 @@ BrowseNodeFactoryImpl::createView( sal_Int16 viewType )
Reference< browse::XBrowseNode >
BrowseNodeFactoryImpl::getOrganizerHierarchy()
- throw (RuntimeException)
{
Reference< browse::XBrowseNode > xRet = new DefaultRootBrowseNode( m_xComponentContext );
return xRet;
@@ -693,20 +668,17 @@ bnf_create( Reference< XComponentContext > const & xComponentContext )
OUString SAL_CALL
BrowseNodeFactoryImpl::getImplementationName()
- throw (RuntimeException, std::exception)
{
return bnf_getImplementationName();
}
Sequence< OUString > SAL_CALL
BrowseNodeFactoryImpl::getSupportedServiceNames()
- throw (RuntimeException, std::exception)
{
return bnf_getSupportedServiceNames();
}
sal_Bool BrowseNodeFactoryImpl::supportsService(OUString const & serviceName )
- throw (RuntimeException, std::exception)
{
return cppu::supportsService(this, serviceName);
}