From: Adam Dickmeiss Date: Tue, 9 Jul 2013 11:38:00 +0000 (+0000) Subject: Add HTMLParserEvent virtual destructor X-Git-Tag: v1.3.59~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c81b0c4ea84ed5f91a0e60c886d982aef9257c3e;p=metaproxy-moved-to-github.git Add HTMLParserEvent virtual destructor --- diff --git a/src/html_parser.cpp b/src/html_parser.cpp index a720c56..3641195 100644 --- a/src/html_parser.cpp +++ b/src/html_parser.cpp @@ -287,6 +287,10 @@ void mp::HTMLParser::Rep::parse_str(HTMLParserEvent &event, const char *cp) tagText(event, text_start, cp); } +mp::HTMLParserEvent::~HTMLParserEvent() +{ +} + /* * Local variables: * c-basic-offset: 4 diff --git a/src/html_parser.hpp b/src/html_parser.hpp index 3e10daf..bba263c 100644 --- a/src/html_parser.hpp +++ b/src/html_parser.hpp @@ -33,6 +33,7 @@ namespace metaproxy_1 { const char *sep) = 0; virtual void closeTag(const char *tag, int tag_len) = 0; virtual void text(const char *value, int len) = 0; + virtual ~ HTMLParserEvent(); }; class HTMLParser { class Rep;