[Libreoffice-commits] core.git: include/sax sax/source

Michael Meeks michael.meeks at collabora.com
Wed Nov 27 01:48:30 PST 2013


 include/sax/fastattribs.hxx      |    2 +-
 sax/source/tools/fastattribs.cxx |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit bc90fb9e3072d751158a8ea0ca0a893d271b8973
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Wed Nov 27 09:47:40 2013 +0000

    fastparser: Outline virtual destructor to please MSVC++.
    
    Change-Id: I8368698e80e5ebe339b822a9e0e767e8ba867e07

diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx
index f1f64dd..bb1b93d 100644
--- a/include/sax/fastattribs.hxx
+++ b/include/sax/fastattribs.hxx
@@ -53,7 +53,7 @@ typedef std::vector< UnknownAttribute > UnknownAttributeList;
 class SAX_DLLPUBLIC FastTokenHandlerBase
 {
     public:
-        virtual ~FastTokenHandlerBase() {}
+        virtual ~FastTokenHandlerBase();
         virtual sal_Int32 getTokenDirect( const char *pToken, sal_Int32 nLength ) const = 0;
 };
 
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index bc63b3e..595c736 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -27,6 +27,11 @@ using namespace ::com::sun::star::xml::sax;
 namespace sax_fastparser
 {
 
+// wasteage to keep MSVC happy vs. an in-line {}
+FastTokenHandlerBase::FastTokenHandlerBase()
+{
+}
+
 UnknownAttribute::UnknownAttribute( const OUString& rNamespaceURL, const OString& rName, const sal_Char* pValue )
     : maNamespaceURL( rNamespaceURL ), maName( rName ), maValue( pValue )
 {


More information about the Libreoffice-commits mailing list