diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2014-01-25 16:24:52 -0200 |
---|---|---|
committer | Marcos Souza <marcos.souza.org@gmail.com> | 2014-02-03 14:35:46 +0000 |
commit | f9369d33a455b328f96fa554e3e942e64a40a4da (patch) | |
tree | 20916e357bd757412b977800a74141592928aaaf /unotools | |
parent | 326bec33e0a08123d716b9d2a06884368a8f07eb (diff) |
fdo#54938 Convert to cppu::supportsService
Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10
Reviewed-on: https://gerrit.libreoffice.org/7649
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/xtempfile.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx index f206a953576b..8c4c6f0e0827 100644 --- a/unotools/source/ucbhelper/xtempfile.cxx +++ b/unotools/source/ucbhelper/xtempfile.cxx @@ -16,12 +16,14 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <XTempFile.hxx> + #include <cppuhelper/factory.hxx> +#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/typeprovider.hxx> -#include <unotools/tempfile.hxx> #include <osl/file.hxx> #include <unotools/configmgr.hxx> +#include <unotools/tempfile.hxx> +#include <XTempFile.hxx> OTempFileService::OTempFileService(css::uno::Reference< css::uno::XComponentContext > const & context) : ::cppu::PropertySetMixin< css::io::XTempFile >( @@ -432,8 +434,7 @@ throw ( css::uno::RuntimeException ) sal_Bool SAL_CALL OTempFileService::supportsService( OUString const & rServiceName ) throw ( css::uno::RuntimeException ) { - css::uno::Sequence< OUString > aServices(getSupportedServiceNames_Static()); - return rServiceName == aServices[0]; + return cppu::supportsService(this, rServiceName); } css::uno::Sequence < OUString > SAL_CALL OTempFileService::getSupportedServiceNames() |