diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/fasttokenhandler.cxx | 2 | ||||
-rw-r--r-- | oox/source/crypto/AgileEngine.cxx | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/oox/source/core/fasttokenhandler.cxx b/oox/source/core/fasttokenhandler.cxx index a57be30e0c2c..55b0389b8d18 100644 --- a/oox/source/core/fasttokenhandler.cxx +++ b/oox/source/core/fasttokenhandler.cxx @@ -76,7 +76,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* com_sun_star_comp_oox_core_FastTokenHandler_get_implementation( uno::XComponentContext* /*pCtx*/, uno::Sequence<uno::Any> const& /*rSeq*/) { - return cppu::acquire(new oox::core::FastTokenHandler()); + return cppu::acquire(static_cast<sax_fastparser::FastTokenHandlerBase*>(new oox::core::FastTokenHandler())); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/crypto/AgileEngine.cxx b/oox/source/crypto/AgileEngine.cxx index eb2257f94f5f..d8c184caa46c 100644 --- a/oox/source/crypto/AgileEngine.cxx +++ b/oox/source/crypto/AgileEngine.cxx @@ -25,6 +25,7 @@ #include <filter/msfilter/mscodec.hxx> #include <tools/stream.hxx> #include <tools/XmlWriter.hxx> +#include <sax/fastattribs.hxx> #include <com/sun/star/xml/sax/XFastParser.hpp> #include <com/sun/star/xml/sax/XFastTokenHandler.hpp> @@ -48,7 +49,7 @@ OUString stripNamespacePrefix(OUString const & rsInputName) return rsInputName.copy(rsInputName.indexOf(":") + 1); } -class AgileTokenHandler : public cppu::WeakImplHelper<XFastTokenHandler> +class AgileTokenHandler : public sax_fastparser::FastTokenHandlerBase { public: virtual sal_Int32 SAL_CALL getTokenFromUTF8(const Sequence< sal_Int8 >& /*nIdentifier*/) override @@ -60,6 +61,11 @@ public: { return Sequence<sal_Int8>(); } + + virtual sal_Int32 getTokenDirect( const char * /* pToken */, sal_Int32 /* nLength */ ) const override + { + return -1; + } }; class AgileDocumentHandler : public ::cppu::WeakImplHelper<XFastDocumentHandler> |