diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-24 14:55:08 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-25 08:07:04 +0000 |
commit | da5449da0c056a3a0da239eff2e2b8b66cfd6224 (patch) | |
tree | 6f6698e676726bd8a07f281a9707e448a711d983 /forms/source/runtime | |
parent | Fix bit-rot (diff) | |
download | core-da5449da0c056a3a0da239eff2e2b8b66cfd6224.tar.gz core-da5449da0c056a3a0da239eff2e2b8b66cfd6224.zip |
fdo#54938: More uses of cppu::supportsService
Change-Id: Id6bed78d92eba52283a17ab3ca66e751c225e48d
Reviewed-on: https://gerrit.libreoffice.org/6423
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms/source/runtime')
-rw-r--r-- | forms/source/runtime/formoperations.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index 539026476279..e1b8acbe1cba 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -57,6 +57,7 @@ #include <comphelper/namedvaluecollection.hxx> #include <comphelper/processfactory.hxx> #include <cppuhelper/exc_hlp.hxx> +#include <cppuhelper/supportsservice.hxx> #include <osl/mutex.hxx> #include <sal/macros.h> @@ -183,35 +184,27 @@ namespace frm throw IllegalArgumentException( OUString(), *this, 0 ); } - //-------------------------------------------------------------------- OUString SAL_CALL FormOperations::getImplementationName( ) throw (RuntimeException) { return getImplementationName_Static(); } - //-------------------------------------------------------------------- ::sal_Bool SAL_CALL FormOperations::supportsService( const OUString& _ServiceName ) throw (RuntimeException) { - Sequence< OUString > aSupportedServiceNames( getSupportedServiceNames() ); - const OUString* pBegin = aSupportedServiceNames.getConstArray(); - const OUString* pEnd = aSupportedServiceNames.getConstArray() + aSupportedServiceNames.getLength(); - return ::std::find( pBegin, pEnd, _ServiceName ) != pEnd; + return cppu::supportsService(this, _ServiceName); } - //-------------------------------------------------------------------- Sequence< OUString > SAL_CALL FormOperations::getSupportedServiceNames( ) throw (RuntimeException) { return getSupportedServiceNames_Static(); } - //-------------------------------------------------------------------- Reference< XRowSet > SAL_CALL FormOperations::getCursor() throw (RuntimeException) { MethodGuard aGuard( *this ); return m_xCursor; } - //-------------------------------------------------------------------- Reference< XResultSetUpdate > SAL_CALL FormOperations::getUpdateCursor() throw (RuntimeException) { MethodGuard aGuard( *this ); |