fdo#54938: Adapt supportsService implementations..
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
c82a36f9c7
commit
ee5661ecd3
@@ -25,6 +25,7 @@
|
||||
#include <cppuhelper/factory.hxx>
|
||||
#include <cppuhelper/implbase2.hxx>
|
||||
#include <cppuhelper/implementationentry.hxx>
|
||||
#include <cppuhelper/supportsservice.hxx>
|
||||
|
||||
#include <rtl/textenc.h>
|
||||
#include <rtl/tencinfo.h>
|
||||
@@ -452,14 +453,7 @@ OUString OTextInputStream::getImplementationName() throw()
|
||||
|
||||
sal_Bool OTextInputStream::supportsService(const OUString& ServiceName) throw()
|
||||
{
|
||||
Sequence< OUString > aSNL = getSupportedServiceNames();
|
||||
const OUString * pArray = aSNL.getConstArray();
|
||||
|
||||
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
|
||||
if( pArray[i] == ServiceName )
|
||||
return sal_True;
|
||||
|
||||
return sal_False;
|
||||
return cppu::supportsService(this, ServiceName);
|
||||
}
|
||||
|
||||
Sequence< OUString > OTextInputStream::getSupportedServiceNames(void) throw()
|
||||
|
Reference in New Issue
Block a user