summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser/genericcontroller.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-10-16 19:25:05 -0300
committerStephan Bergmann <sbergman@redhat.com>2013-10-17 14:43:28 +0200
commit3d3293144b0e0d2d28136b1b2c7154d6352463b8 (patch)
tree1ef57838dc7fa88515a69dce12612e6071bc08b9 /dbaccess/source/ui/browser/genericcontroller.cxx
parent6fe26facd06d4d1e5e37384d25d83209209229fa (diff)
fdo#54938: Adapt svtools and comphelper module ...
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/browser/genericcontroller.cxx')
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 8a604022f7aa..5ea4421708f2 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -33,6 +33,7 @@
#include <framework/titlehelper.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/extract.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/sdbc/XDataSource.hpp>
#include <com/sun/star/sdb/DatabaseContext.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
@@ -960,14 +961,7 @@ bool OGenericUnoController::isUserDefinedFeature( const OUString& _rFeatureURL )
sal_Bool SAL_CALL OGenericUnoController::supportsService(const OUString& ServiceName) throw(RuntimeException)
{
- Sequence< OUString > aSupported(getSupportedServiceNames());
-
- const OUString* pArray = aSupported.getConstArray();
- const OUString* pArrayEnd = aSupported.getConstArray() + aSupported.getLength();
-
- for ( ;( pArray != pArrayEnd ) && !pArray->equals( ServiceName ); ++pArray )
- ;
- return pArray != pArrayEnd;
+ return cppu::supportsService(this, ServiceName);
}
void OGenericUnoController::startConnectionListening(const Reference< XConnection >& _rxConnection)