summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-10-26 13:11:42 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-30 18:17:11 +0100
commit2b01553fa5982ed50fd37f346a150d1aac8dcd6f (patch)
tree1daf00bf4b69950c5b75e98571d2b839d5b83327 /formula/source
parent9ab844c7fa907e2d1119a316c695198ef888a059 (diff)
fdo#54938: Convert svx to use cppu::supportsService
Change-Id: I3ab178924cb1c4240511f08625f244dac54e3913 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaOpCodeMapperObj.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/formula/source/core/api/FormulaOpCodeMapperObj.cxx b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
index d7bbaf4dcec6..4439834ee453 100644
--- a/formula/source/core/api/FormulaOpCodeMapperObj.cxx
+++ b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
@@ -19,21 +19,17 @@
#include "formula/FormulaOpCodeMapperObj.hxx"
#include "formula/opcode.hxx"
#include <comphelper/sequence.hxx>
+#include <cppuhelper/supportsservice.hxx>
-// =============================================================================
namespace formula
{
-// =============================================================================
-
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
-// --------------------------------------------------------------------------------
sal_Bool SAL_CALL FormulaOpCodeMapperObj::supportsService( const OUString& _rServiceName ) throw(uno::RuntimeException)
{
- return ::comphelper::findValue( getSupportedServiceNames_Static(), _rServiceName, sal_True ).getLength() != 0;
+ return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------------
+
SAL_WNODEPRECATED_DECLARATIONS_PUSH
FormulaOpCodeMapperObj::FormulaOpCodeMapperObj(::std::auto_ptr<FormulaCompiler> _pCompiler)
: m_pCompiler(_pCompiler)
@@ -45,7 +41,6 @@ FormulaOpCodeMapperObj::~FormulaOpCodeMapperObj()
{
}
-
::sal_Int32 SAL_CALL FormulaOpCodeMapperObj::getOpCodeExternal()
throw (::com::sun::star::uno::RuntimeException)
{