Remove remaining dynamic exception specifications in odk/examples
as begun in
commit ddcc98fa50
Author: Stephan Bergmann <sbergman@redhat.com>
Date: Wed Jul 22 13:41:12 2020 +0200
Remove obsolete dynamic exception specifications from SDK example C++ code
Change-Id: I70a799655f7633e255d80e829f12a88a27a3c2f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167289
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
committed by
Hossein
parent
c9571914b8
commit
aa4188b8a6
@@ -74,7 +74,7 @@ class MyService1Impl
|
||||
// other UNO API's in your implementation
|
||||
Reference< XComponentContext > m_xContext;
|
||||
public:
|
||||
inline MyService1Impl(Reference< XComponentContext > const & xContext) throw ()
|
||||
inline MyService1Impl(Reference< XComponentContext > const & xContext) SAL_NOEXCEPT
|
||||
: m_refcount( 0 ),
|
||||
m_xContext(xContext)
|
||||
{}
|
||||
@@ -83,10 +83,8 @@ public:
|
||||
|
||||
// XInterface
|
||||
virtual Any SAL_CALL queryInterface( Type const & type );
|
||||
virtual void SAL_CALL acquire()
|
||||
throw ();
|
||||
virtual void SAL_CALL release()
|
||||
throw ();
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT;
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
// XTypeProvider
|
||||
virtual Sequence< Type > SAL_CALL getTypes();
|
||||
virtual Sequence< sal_Int8 > SAL_CALL getImplementationId();
|
||||
@@ -135,15 +133,13 @@ Any MyService1Impl::queryInterface( Type const & type )
|
||||
return Any();
|
||||
}
|
||||
|
||||
void MyService1Impl::acquire()
|
||||
throw ()
|
||||
void MyService1Impl::acquire() SAL_NOEXCEPT
|
||||
{
|
||||
// thread-safe incrementation of reference count
|
||||
::osl_atomic_increment( &m_refcount );
|
||||
}
|
||||
|
||||
void MyService1Impl::release()
|
||||
throw ()
|
||||
void MyService1Impl::release() SAL_NOEXCEPT
|
||||
{
|
||||
// thread-safe decrementation of reference count
|
||||
if (0 == ::osl_atomic_decrement( &m_refcount ))
|
||||
|
||||
@@ -78,7 +78,7 @@ class MyService2Impl : public ::cppu::WeakImplHelper3<
|
||||
// other UNO API's in your implementation
|
||||
Reference< XComponentContext > m_xContext;
|
||||
public:
|
||||
inline MyService2Impl(Reference< XComponentContext > const & xContext) throw ()
|
||||
inline MyService2Impl(Reference< XComponentContext > const & xContext) SAL_NOEXCEPT
|
||||
: m_xContext(xContext)
|
||||
{}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ OConnection::~OConnection()
|
||||
m_pDriver = NULL;
|
||||
}
|
||||
|
||||
void SAL_CALL OConnection::release() throw()
|
||||
void SAL_CALL OConnection::release() SAL_NOEXCEPT
|
||||
{
|
||||
release_ChildImpl();
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace connectivity
|
||||
// OComponentHelper
|
||||
virtual void SAL_CALL disposing();
|
||||
// XInterface
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
|
||||
// XServiceInfo
|
||||
DECLARE_SERVICE_INFO();
|
||||
|
||||
@@ -66,12 +66,12 @@ OPreparedStatement::~OPreparedStatement()
|
||||
{
|
||||
}
|
||||
|
||||
void SAL_CALL OPreparedStatement::acquire() throw()
|
||||
void SAL_CALL OPreparedStatement::acquire() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE2::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL OPreparedStatement::release() throw()
|
||||
void SAL_CALL OPreparedStatement::release() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE2::release();
|
||||
}
|
||||
|
||||
@@ -99,8 +99,8 @@ namespace connectivity
|
||||
|
||||
//XInterface
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType );
|
||||
virtual void SAL_CALL acquire() throw();
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT;
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
//XTypeProvider
|
||||
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( );
|
||||
|
||||
|
||||
@@ -848,12 +848,12 @@ void OResultSet::getFastPropertyValue(
|
||||
}
|
||||
}
|
||||
|
||||
void SAL_CALL OResultSet::acquire() throw()
|
||||
void SAL_CALL OResultSet::acquire() SAL_NOEXCEPT
|
||||
{
|
||||
OResultSet_BASE::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL OResultSet::release() throw()
|
||||
void SAL_CALL OResultSet::release() SAL_NOEXCEPT
|
||||
{
|
||||
OResultSet_BASE::release();
|
||||
}
|
||||
|
||||
@@ -120,8 +120,8 @@ namespace connectivity
|
||||
virtual void SAL_CALL disposing();
|
||||
// XInterface
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType );
|
||||
virtual void SAL_CALL acquire() throw();
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT;
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
//XTypeProvider
|
||||
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( );
|
||||
// XPropertySet
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace connectivity
|
||||
OResultSetMetaData(OConnection* _pConnection) : m_pConnection(_pConnection){}
|
||||
|
||||
/// Avoid ambiguous cast error from the compiler.
|
||||
inline operator ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > () throw()
|
||||
inline operator ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > () SAL_NOEXCEPT
|
||||
{ return this; }
|
||||
|
||||
virtual sal_Int32 SAL_CALL getColumnCount( );
|
||||
|
||||
@@ -93,7 +93,7 @@ void OStatement_BASE2::disposing()
|
||||
OStatement_Base::disposing();
|
||||
}
|
||||
|
||||
void SAL_CALL OStatement_BASE2::release() throw()
|
||||
void SAL_CALL OStatement_BASE2::release() SAL_NOEXCEPT
|
||||
{
|
||||
release_ChildImpl();
|
||||
}
|
||||
@@ -347,22 +347,22 @@ void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement")
|
||||
|
||||
void SAL_CALL OStatement_Base::acquire() throw()
|
||||
void SAL_CALL OStatement_Base::acquire() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL OStatement_Base::release() throw()
|
||||
void SAL_CALL OStatement_Base::release() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE::release();
|
||||
}
|
||||
|
||||
void SAL_CALL OStatement::acquire() throw()
|
||||
void SAL_CALL OStatement::acquire() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE2::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL OStatement::release() throw()
|
||||
void SAL_CALL OStatement::release() SAL_NOEXCEPT
|
||||
{
|
||||
OStatement_BASE2::release();
|
||||
}
|
||||
|
||||
@@ -104,8 +104,8 @@ namespace connectivity
|
||||
// OComponentHelper
|
||||
virtual void SAL_CALL disposing(){OStatement_BASE::disposing();}
|
||||
// XInterface
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL acquire() throw();
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT;
|
||||
// XInterface
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType );
|
||||
//XTypeProvider
|
||||
@@ -145,7 +145,7 @@ namespace connectivity
|
||||
// OComponentHelper
|
||||
virtual void SAL_CALL disposing();
|
||||
// XInterface
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
};
|
||||
|
||||
class OStatement : public OStatement_BASE2,
|
||||
@@ -160,8 +160,8 @@ namespace connectivity
|
||||
DECLARE_SERVICE_INFO();
|
||||
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType );
|
||||
virtual void SAL_CALL acquire() throw();
|
||||
virtual void SAL_CALL release() throw();
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT;
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT;
|
||||
// XBatchExecution
|
||||
virtual void SAL_CALL addBatch( const ::rtl::OUString& sql );
|
||||
virtual void SAL_CALL clearBatch( );
|
||||
|
||||
@@ -82,9 +82,9 @@ public:
|
||||
{ std::cout << "< MyCounterImpl dtor called >" << std::endl; }
|
||||
|
||||
// XInterface implementation
|
||||
virtual void SAL_CALL acquire() throw ()
|
||||
virtual void SAL_CALL acquire() SAL_NOEXCEPT
|
||||
{ ++m_nRefCount; }
|
||||
virtual void SAL_CALL release() throw ()
|
||||
virtual void SAL_CALL release() SAL_NOEXCEPT
|
||||
{ if (! --m_nRefCount) delete this; }
|
||||
virtual Any SAL_CALL queryInterface( const Type & rType )
|
||||
{ return cppu::queryInterface(rType,
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
Reference< XUIElement > SAL_CALL ToolPanelFactory::createUIElement( const OUString& i_rResourceURL, const Sequence< PropertyValue >& i_rArgs ) throw (NoSuchElementException, IllegalArgumentException, RuntimeException)
|
||||
Reference< XUIElement > SAL_CALL ToolPanelFactory::createUIElement( const OUString& i_rResourceURL, const Sequence< PropertyValue >& i_rArgs )
|
||||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
|
||||
@@ -86,27 +86,27 @@ namespace sd { namespace colortoolpanel
|
||||
return xUIElement;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ToolPanelFactory::getImplementationName( ) throw (RuntimeException)
|
||||
OUString SAL_CALL ToolPanelFactory::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_static();
|
||||
}
|
||||
|
||||
OUString SAL_CALL ToolPanelFactory::getImplementationName_static( ) throw (RuntimeException)
|
||||
OUString SAL_CALL ToolPanelFactory::getImplementationName_static( )
|
||||
{
|
||||
return OUString( "org.openoffice.comp.example.custompanel.ToolPanelFactory" );
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ToolPanelFactory::supportsService( const OUString& i_rServiceName ) throw (RuntimeException)
|
||||
sal_Bool SAL_CALL ToolPanelFactory::supportsService( const OUString& i_rServiceName )
|
||||
{
|
||||
return cppu::supportsService(this, i_rServiceName);
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL ToolPanelFactory::getSupportedServiceNames() throw (RuntimeException)
|
||||
Sequence< OUString > SAL_CALL ToolPanelFactory::getSupportedServiceNames()
|
||||
{
|
||||
return getSupportedServiceNames_static();
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL ToolPanelFactory::getSupportedServiceNames_static() throw (RuntimeException)
|
||||
Sequence< OUString > SAL_CALL ToolPanelFactory::getSupportedServiceNames_static()
|
||||
{
|
||||
Sequence< OUString > aServiceNames(1);
|
||||
aServiceNames[0] = "org.openoffice.example.colorpanel.ToolPanelFactory";
|
||||
@@ -114,7 +114,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
Reference< XInterface > SAL_CALL ToolPanelFactory::Create( const Reference< XComponentContext >& i_rContext ) throw (RuntimeException)
|
||||
Reference< XInterface > SAL_CALL ToolPanelFactory::Create( const Reference< XComponentContext >& i_rContext )
|
||||
{
|
||||
return *( new ToolPanelFactory( i_rContext ) );
|
||||
}
|
||||
|
||||
@@ -44,17 +44,17 @@ namespace sd { namespace colortoolpanel
|
||||
~ToolPanelFactory();
|
||||
|
||||
// XUIElementFactory
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > SAL_CALL createUIElement( const OUString& i_rResourceURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& i_rArgs ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > SAL_CALL createUIElement( const OUString& i_rResourceURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& i_rArgs );
|
||||
|
||||
// XServiceInfo
|
||||
virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual OUString SAL_CALL getImplementationName( );
|
||||
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName );
|
||||
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( );
|
||||
|
||||
// XServiceInfo - static versions
|
||||
static OUString SAL_CALL getImplementationName_static( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_rContext ) throw (::com::sun::star::uno::RuntimeException);
|
||||
static OUString SAL_CALL getImplementationName_static( );
|
||||
static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static( );
|
||||
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_rContext );
|
||||
|
||||
private:
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
Reference< XWindow > SAL_CALL SingleColorPanel::getWindow() throw (RuntimeException)
|
||||
Reference< XWindow > SAL_CALL SingleColorPanel::getWindow()
|
||||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
if ( !m_xWindow.is() )
|
||||
@@ -131,7 +131,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
Reference< XAccessible > SAL_CALL SingleColorPanel::createAccessible( const Reference< XAccessible >& i_rParentAccessible ) throw (RuntimeException)
|
||||
Reference< XAccessible > SAL_CALL SingleColorPanel::createAccessible( const Reference< XAccessible >& i_rParentAccessible )
|
||||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
if ( !m_xWindow.is() )
|
||||
@@ -144,7 +144,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL SingleColorPanel::windowPaint( const PaintEvent& i_rEvent ) throw (RuntimeException)
|
||||
void SAL_CALL SingleColorPanel::windowPaint( const PaintEvent& i_rEvent )
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -163,7 +163,7 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL SingleColorPanel::disposing( const EventObject& i_rSource ) throw (RuntimeException)
|
||||
void SAL_CALL SingleColorPanel::disposing( const EventObject& i_rSource )
|
||||
{
|
||||
(void)i_rSource;
|
||||
}
|
||||
@@ -201,26 +201,26 @@ namespace sd { namespace colortoolpanel
|
||||
}
|
||||
|
||||
|
||||
Reference< XFrame > SAL_CALL PanelUIElement::getFrame() throw (RuntimeException)
|
||||
Reference< XFrame > SAL_CALL PanelUIElement::getFrame()
|
||||
{
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL PanelUIElement::getResourceURL() throw (RuntimeException)
|
||||
OUString SAL_CALL PanelUIElement::getResourceURL()
|
||||
{
|
||||
return m_sResourceURL;
|
||||
}
|
||||
|
||||
|
||||
::sal_Int16 SAL_CALL PanelUIElement::getType() throw (RuntimeException)
|
||||
::sal_Int16 SAL_CALL PanelUIElement::getType()
|
||||
{
|
||||
return UIElementType::TOOLPANEL;
|
||||
}
|
||||
|
||||
|
||||
Reference< XInterface > SAL_CALL PanelUIElement::getRealInterface( ) throw (RuntimeException)
|
||||
Reference< XInterface > SAL_CALL PanelUIElement::getRealInterface( )
|
||||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
if ( !m_xToolPanel.is() )
|
||||
|
||||
@@ -48,14 +48,14 @@ namespace sd { namespace colortoolpanel
|
||||
);
|
||||
|
||||
// XToolPanel
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getWindow() throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL createAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rParentAccessible ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getWindow();
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL createAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rParentAccessible );
|
||||
|
||||
// XPaintListener
|
||||
virtual void SAL_CALL windowPaint( const ::com::sun::star::awt::PaintEvent& e ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual void SAL_CALL windowPaint( const ::com::sun::star::awt::PaintEvent& e );
|
||||
|
||||
// XEventListener
|
||||
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source );
|
||||
|
||||
// XComponent equivalents
|
||||
virtual void SAL_CALL disposing();
|
||||
@@ -82,10 +82,10 @@ namespace sd { namespace colortoolpanel
|
||||
);
|
||||
|
||||
// XUIElement
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > SAL_CALL getFrame() throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual OUString SAL_CALL getResourceURL() throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::sal_Int16 SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > SAL_CALL getFrame();
|
||||
virtual OUString SAL_CALL getResourceURL();
|
||||
virtual ::sal_Int16 SAL_CALL getType();
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface( );
|
||||
|
||||
// OComponentHelper
|
||||
virtual void SAL_CALL disposing();
|
||||
|
||||
Reference in New Issue
Block a user