summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2014-01-31 03:09:23 -0200
committerMarcos Souza <marcos.souza.org@gmail.com>2014-02-02 18:53:03 +0000
commit32b8c5c4a9fd03b4e05dff2a77ec186973c126b3 (patch)
treeb00ed1cacd475a297e60168b664146ae4e6f8849 /svgio
parent018500a73f3b1082b6662b7c123dfe5158ae5752 (diff)
fdo#54938 Convert basctl, mysqlc, sdext, svgio, writerp. to cppu::supportsSer.
Change-Id: I60128dbb5bf83f25eea847fe655d7126c9077414 Reviewed-on: https://gerrit.libreoffice.org/7756 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 'svgio')
-rw-r--r--svgio/source/svguno/xsvgparser.cxx26
1 files changed, 3 insertions, 23 deletions
diff --git a/svgio/source/svguno/xsvgparser.cxx b/svgio/source/svguno/xsvgparser.cxx
index bafeb0e625d1..e32e712225cd 100644
--- a/svgio/source/svguno/xsvgparser.cxx
+++ b/svgio/source/svguno/xsvgparser.cxx
@@ -23,20 +23,17 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <cppuhelper/implbase2.hxx>
-#include <svgio/svgreader/svgdocumenthandler.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/xml/sax/XParser.hpp>
#include <com/sun/star/xml/sax/Parser.hpp>
#include <com/sun/star/xml/sax/InputSource.hpp>
#include <drawinglayer/geometry/viewinformation2d.hxx>
+#include <svgio/svgreader/svgdocumenthandler.hxx>
#include "xsvgparser.hxx"
-//////////////////////////////////////////////////////////////////////////////
-
using namespace ::com::sun::star;
-//////////////////////////////////////////////////////////////////////////////
-
namespace svgio
{
namespace svgreader
@@ -68,9 +65,7 @@ namespace svgio
} // end of namespace svgreader
} // end of namespace svgio
-//////////////////////////////////////////////////////////////////////////////
// uno functions
-
namespace svgio
{
namespace svgreader
@@ -95,8 +90,6 @@ namespace svgio
} // end of namespace svgreader
} // end of namespace svgio
-//////////////////////////////////////////////////////////////////////////////
-
namespace svgio
{
namespace svgreader
@@ -185,17 +178,7 @@ namespace svgio
sal_Bool SAL_CALL XSvgParser::supportsService(const OUString& rServiceName) throw(uno::RuntimeException)
{
- const uno::Sequence< OUString > aServices(XSvgParser_getSupportedServiceNames());
-
- for(sal_Int32 nService(0); nService < aServices.getLength(); nService++)
- {
- if(rServiceName == aServices[nService])
- {
- return sal_True;
- }
- }
-
- return sal_False;
+ return cppu::supportsService(this, rServiceName);
}
uno::Sequence< OUString > SAL_CALL XSvgParser::getSupportedServiceNames() throw(uno::RuntimeException)
@@ -206,7 +189,4 @@ namespace svgio
} // end of namespace svgreader
} // end of namespace svgio
-//////////////////////////////////////////////////////////////////////////////
-// eof
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */