diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 10:38:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 09:49:48 +0000 |
commit | bbf6c5171706e55edcf8e011a536264f4f2efd99 (patch) | |
tree | 086e73ba7bcfb3a489b3e2523708e2a088245618 /forms/source/runtime | |
parent | coverity#1394269 Uncaught exception (diff) | |
download | core-bbf6c5171706e55edcf8e011a536264f4f2efd99.tar.gz core-bbf6c5171706e55edcf8e011a536264f4f2efd99.zip |
loplugin:expandablemethods in forms..formula
Change-Id: Idc948ad06913def28cb642c3a4e5ea9322b9fb3b
Reviewed-on: https://gerrit.libreoffice.org/30688
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/runtime')
-rw-r--r-- | forms/source/runtime/formoperations.cxx | 15 | ||||
-rw-r--r-- | forms/source/runtime/formoperations.hxx | 4 |
2 files changed, 2 insertions, 17 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index c59b805c67a0..75c56f19aee0 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -131,17 +131,6 @@ namespace frm { } - OUString FormOperations::getImplementationName_Static( ) throw(RuntimeException) - { - return OUString( "com.sun.star.comp.forms.FormOperations" ); - } - - Sequence< OUString > FormOperations::getSupportedServiceNames_Static( ) throw(RuntimeException) - { - Sequence< OUString > aNames { "com.sun.star.form.runtime.FormOperations" }; - return aNames; - } - void SAL_CALL FormOperations::initialize( const Sequence< Any >& _arguments ) throw (Exception, RuntimeException, std::exception) { if ( m_bConstructed ) @@ -165,7 +154,7 @@ namespace frm OUString SAL_CALL FormOperations::getImplementationName( ) throw (RuntimeException, std::exception) { - return getImplementationName_Static(); + return OUString( "com.sun.star.comp.forms.FormOperations" ); } sal_Bool SAL_CALL FormOperations::supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception) @@ -175,7 +164,7 @@ namespace frm Sequence< OUString > SAL_CALL FormOperations::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { - return getSupportedServiceNames_Static(); + return { "com.sun.star.form.runtime.FormOperations" }; } Reference< XRowSet > SAL_CALL FormOperations::getCursor() throw (RuntimeException, std::exception) diff --git a/forms/source/runtime/formoperations.hxx b/forms/source/runtime/formoperations.hxx index 3d94b7aaea95..1e43dcd58801 100644 --- a/forms/source/runtime/formoperations.hxx +++ b/forms/source/runtime/formoperations.hxx @@ -78,10 +78,6 @@ namespace frm public: explicit FormOperations( const css::uno::Reference< css::uno::XComponentContext >& _rxContext ); - // XServiceInfo - static versions - static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); - static css::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException); - struct MethodAccess { friend class MethodGuard; private: MethodAccess() { } }; inline void enterMethod( MethodAccess ) const |