summaryrefslogtreecommitdiffstats
path: root/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx')
-rw-r--r--odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx24
1 files changed, 6 insertions, 18 deletions
diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index b032b670e137..840252f691fe 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -89,25 +89,18 @@ public:
// XInitialization will be called upon
// createInstanceWithArguments[AndContext]()
- virtual void SAL_CALL initialize( Sequence< Any > const & args )
- throw (Exception);
+ virtual void SAL_CALL initialize( Sequence< Any > const & args );
// XSomething
- virtual OUString SAL_CALL methodOne( OUString const & str )
- throw (RuntimeException);
- virtual OUString SAL_CALL methodTwo( )
- throw (RuntimeException);
+ virtual OUString SAL_CALL methodOne( OUString const & str );
+ virtual OUString SAL_CALL methodTwo( );
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw (RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName )
- throw (RuntimeException);
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw (RuntimeException);
+ virtual OUString SAL_CALL getImplementationName();
+ virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName );
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames();
};
// XInitialization implementation
void MyService2Impl::initialize( Sequence< Any > const & args )
- throw (Exception)
{
if (args.getLength() != 1)
{
@@ -131,34 +124,29 @@ void MyService2Impl::initialize( Sequence< Any > const & args )
// XSomething implementation
OUString MyService2Impl::methodOne( OUString const & str )
- throw (RuntimeException)
{
m_sData = str;
return OUString( "called methodOne() of MyService2 implementation: " ) + m_sData;
}
OUString MyService2Impl::methodTwo( )
- throw (RuntimeException)
{
return OUString( "called methodTwo() of MyService2 implementation: " ) + m_sData;
}
// XServiceInfo implementation
OUString MyService2Impl::getImplementationName()
- throw (RuntimeException)
{
// unique implementation name
return OUString("my_module.my_sc_implementation.MyService2");
}
sal_Bool MyService2Impl::supportsService( OUString const & serviceName )
- throw (RuntimeException)
{
return cppu::supportsService(this, serviceName);
}
Sequence< OUString > MyService2Impl::getSupportedServiceNames()
- throw (RuntimeException)
{
return getSupportedServiceNames_MyService2Impl();
}