summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/sfxmodelfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/sfxmodelfactory.cxx')
-rw-r--r--sfx2/source/doc/sfxmodelfactory.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/sfx2/source/doc/sfxmodelfactory.cxx b/sfx2/source/doc/sfxmodelfactory.cxx
index bb6b1d68745c..c5ff5c1240b8 100644
--- a/sfx2/source/doc/sfxmodelfactory.cxx
+++ b/sfx2/source/doc/sfxmodelfactory.cxx
@@ -25,6 +25,7 @@
#include <comphelper/namedvaluecollection.hxx>
#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <algorithm>
#include <functional>
@@ -188,38 +189,27 @@ namespace sfx2
return xInstance;
}
- //--------------------------------------------------------------------
OUString SAL_CALL SfxModelFactory::getImplementationName( ) throw (RuntimeException)
{
return m_sImplementationName;
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL SfxModelFactory::supportsService( const OUString& _rServiceName ) throw (RuntimeException)
{
- return ::std::find(
- m_aServiceNames.getConstArray(),
- m_aServiceNames.getConstArray() + m_aServiceNames.getLength(),
- _rServiceName
- ) != m_aServiceNames.getConstArray() + m_aServiceNames.getLength();
+ return cppu::supportsService(this, _rServiceName);
}
- //--------------------------------------------------------------------
Sequence< OUString > SAL_CALL SfxModelFactory::getSupportedServiceNames( ) throw (RuntimeException)
{
return m_aServiceNames;
}
- //--------------------------------------------------------------------
Reference< XSingleServiceFactory > createSfxModelFactory( const Reference< XMultiServiceFactory >& _rxServiceFactory,
const OUString& _rImplementationName, const SfxModelFactoryFunc _pComponentFactoryFunc,
const Sequence< OUString >& _rServiceNames )
{
return new SfxModelFactory( _rxServiceFactory, _rImplementationName, _pComponentFactoryFunc, _rServiceNames );
}
-
-//........................................................................
} // namespace sfx2
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */