diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-15 02:55:16 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:32 -0400 |
commit | a087e6ea97494d97580c97705c665cac317a0dc3 (patch) | |
tree | d771c7f88f5b6255cb46b2d69aeec9395b3f982d /xml.h | |
parent | 691c29a696d2347faebd5663da9d1dc751f275eb (diff) | |
download | fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2 fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip |
Cleared out all warnings; started work on getting Python up again.
Diffstat (limited to 'xml.h')
-rw-r--r-- | xml.h | 33 |
1 files changed, 18 insertions, 15 deletions
@@ -63,7 +63,7 @@ class parent_node_t; class node_t { public: - int name_id; + unsigned int name_id; #ifdef THREADSAFE document_t * document; #else @@ -210,6 +210,7 @@ class parser_t parser_t() : document(NULL), pending(NULL), pending_attrs(NULL), handled_data(false) {} + virtual ~parser_t() {} virtual bool test(std::istream& in) const; virtual document_t * parse(std::istream& in, @@ -219,8 +220,9 @@ class parser_t class parse_error : public error { public: - parse_error(const std::string& reason, error_context * ctxt = NULL) throw() - : error(reason, ctxt) {} + parse_error(const std::string& _reason, + error_context * _ctxt = NULL) throw() + : error(_reason, _ctxt) {} virtual ~parse_error() throw() {} }; @@ -231,9 +233,10 @@ class transaction_node_t : public parent_node_t transaction_t * transaction; public: - transaction_node_t(document_t * document, transaction_t * _transaction, - parent_node_t * parent = NULL) - : parent_node_t(document, parent), transaction(_transaction) { + transaction_node_t(document_t * _document, + transaction_t * _transaction, + parent_node_t * _parent = NULL) + : parent_node_t(_document, _parent), transaction(_transaction) { TRACE_CTOR("transaction_node_t(document_t *, transaction_t *, parent_node_t *)"); set_name("transaction"); } @@ -249,9 +252,9 @@ class entry_node_t : public parent_node_t entry_t * entry; public: - entry_node_t(document_t * document, entry_t * _entry, - parent_node_t * parent = NULL) - : parent_node_t(document, parent), entry(_entry) { + entry_node_t(document_t * _document, entry_t * _entry, + parent_node_t * _parent = NULL) + : parent_node_t(_document, _parent), entry(_entry) { TRACE_CTOR("entry_node_t(document_t *, entry_t *, parent_node_t *)"); set_name("entry"); } @@ -267,9 +270,9 @@ class account_node_t : public parent_node_t account_t * account; public: - account_node_t(document_t * document, account_t * _account, - parent_node_t * parent = NULL) - : parent_node_t(document, parent), account(_account) { + account_node_t(document_t * _document, account_t * _account, + parent_node_t * _parent = NULL) + : parent_node_t(_document, _parent), account(_account) { TRACE_CTOR("account_node_t(document_t *, account_t *, parent_node_t *)"); set_name("account"); } @@ -285,9 +288,9 @@ class journal_node_t : public parent_node_t journal_t * journal; public: - journal_node_t(document_t * document, journal_t * _journal, - parent_node_t * parent = NULL) - : parent_node_t(document, parent), journal(_journal) { + journal_node_t(document_t * _document, journal_t * _journal, + parent_node_t * _parent = NULL) + : parent_node_t(_document, _parent), journal(_journal) { TRACE_CTOR("journal_node_t(document_t *, journal_t *, parent_node_t *)"); set_name("journal"); } |