diff options
Diffstat (limited to 'bridges/test/java_uno/equals/testequals.cxx')
-rw-r--r-- | bridges/test/java_uno/equals/testequals.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx index a56e5b928a39..9124b757a57b 100644 --- a/bridges/test/java_uno/equals/testequals.cxx +++ b/bridges/test/java_uno/equals/testequals.cxx @@ -36,6 +36,7 @@ #include "com/sun/star/uno/XInterface.hpp" #include "cppuhelper/factory.hxx" #include "cppuhelper/implbase2.hxx" +#include <cppuhelper/supportsservice.hxx> #include "cppuhelper/weak.hxx" #include "rtl/string.h" #include "rtl/ustring.hxx" @@ -94,12 +95,7 @@ private: sal_Bool Service::supportsService(OUString const & rServiceName) throw (css::uno::RuntimeException) { - css::uno::Sequence< OUString > aNames( - getSupportedServiceNames_static()); - for (sal_Int32 i = 0; i< aNames.getLength(); ++i) - if (aNames[i] == rServiceName) - return true; - return false; + return cppu::supportsService(this, rServiceName); } void Service::connect(OUString const & rConnection, |