author | Michael Krelin <hacker@klever.net> | 2009-09-13 11:40:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-09-13 11:45:19 (UTC) |
commit | cf7ef50cedc69f19e4077931fc58ef3ea44a3c87 (patch) (unidiff) | |
tree | 4f4624753175a06fc7abb9a46349e6d7ab0db339 /include/opkele/expat.h | |
parent | c5e2a9ce7d7836adaa284dee30b70e04081b0d01 (diff) | |
download | libopkele-cf7ef50cedc69f19e4077931fc58ef3ea44a3c87.zip libopkele-cf7ef50cedc69f19e4077931fc58ef3ea44a3c87.tar.gz libopkele-cf7ef50cedc69f19e4077931fc58ef3ea44a3c87.tar.bz2 |
made compiler a bit happierpublic/next
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/expat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opkele/expat.h b/include/opkele/expat.h index 21be003..c154785 100644 --- a/include/opkele/expat.h +++ b/include/opkele/expat.h | |||
@@ -9,25 +9,25 @@ namespace opkele { | |||
9 | namespace util { | 9 | namespace util { |
10 | 10 | ||
11 | class expat_t { | 11 | class expat_t { |
12 | public: | 12 | public: |
13 | XML_Parser _x; | 13 | XML_Parser _x; |
14 | 14 | ||
15 | expat_t() : _x(0) { } | 15 | expat_t() : _x(0) { } |
16 | expat_t(XML_Parser x) : _x(x) { } | 16 | expat_t(XML_Parser x) : _x(x) { } |
17 | virtual ~expat_t() throw(); | 17 | virtual ~expat_t() throw(); |
18 | 18 | ||
19 | expat_t& operator=(XML_Parser x); | 19 | expat_t& operator=(XML_Parser x); |
20 | 20 | ||
21 | operator const XML_Parser(void) const { return _x; } | 21 | operator XML_Parser(void) const { return _x; } |
22 | operator XML_Parser(void) { return _x; } | 22 | operator XML_Parser(void) { return _x; } |
23 | 23 | ||
24 | inline bool parse(const char *s,int len,bool final=false) { | 24 | inline bool parse(const char *s,int len,bool final=false) { |
25 | assert(_x); | 25 | assert(_x); |
26 | return XML_Parse(_x,s,len,final); | 26 | return XML_Parse(_x,s,len,final); |
27 | } | 27 | } |
28 | 28 | ||
29 | virtual int unknown_encoding(const XML_Char * /* n */,XML_Encoding * /* i */) { return XML_STATUS_ERROR; } | 29 | virtual int unknown_encoding(const XML_Char * /* n */,XML_Encoding * /* i */) { return XML_STATUS_ERROR; } |
30 | void set_unknown_encoding_handler(); | 30 | void set_unknown_encoding_handler(); |
31 | 31 | ||
32 | virtual void start_element(const XML_Char * /* n */,const XML_Char ** /* a */) { } | 32 | virtual void start_element(const XML_Char * /* n */,const XML_Char ** /* a */) { } |
33 | virtual void end_element(const XML_Char * /* n */) { } | 33 | virtual void end_element(const XML_Char * /* n */) { } |