diff options
Diffstat (limited to 'io/source/stm/omark.cxx')
-rw-r--r-- | io/source/stm/omark.cxx | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index 44baddc36d9b..7f0261e40b41 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -32,6 +32,7 @@ #include <cppuhelper/factory.hxx> #include <cppuhelper/weak.hxx> #include <cppuhelper/implbase5.hxx> +#include <cppuhelper/supportsservice.hxx> #include <osl/mutex.hxx> #include <rtl/ustrbuf.hxx> @@ -429,14 +430,7 @@ OUString OMarkableOutputStream::getImplementationName() throw () // XServiceInfo sal_Bool OMarkableOutputStream::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); } // XServiceInfo @@ -445,9 +439,6 @@ Sequence< OUString > OMarkableOutputStream::getSupportedServiceNames(void) throw return OMarkableOutputStream_getSupportedServiceNames(); } - - - /*------------------------ * * external binding @@ -946,8 +937,6 @@ void OMarkableInputStream::checkMarksAndFlush() } } - - // XServiceInfo OUString OMarkableInputStream::getImplementationName() throw () { @@ -957,14 +946,7 @@ OUString OMarkableInputStream::getImplementationName() throw () // XServiceInfo sal_Bool OMarkableInputStream::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); } // XServiceInfo @@ -973,7 +955,6 @@ Sequence< OUString > OMarkableInputStream::getSupportedServiceNames(void) throw return OMarkableInputStream_getSupportedServiceNames(); } - /*------------------------ * * external binding |