diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-24 04:49:58 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-24 04:49:58 -0400 |
commit | a69649fb7f5ca7e20713ec260c5f989ae82d446f (patch) | |
tree | 41929e6fc4d4d20ffcf0bbbfa681dbe3e3624e21 /src/textual.cc | |
parent | dff450ab3dbcb0819029c0bd5aee8dd78703a864 (diff) | |
download | fork-ledger-a69649fb7f5ca7e20713ec260c5f989ae82d446f.tar.gz fork-ledger-a69649fb7f5ca7e20713ec260c5f989ae82d446f.tar.bz2 fork-ledger-a69649fb7f5ca7e20713ec260c5f989ae82d446f.zip |
Switched over to using irrxml for parsing XML, rather than expat.
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/textual.cc b/src/textual.cc index 4600f3f3..95c90708 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -605,13 +605,9 @@ bool textual_parser_t::test(std::istream& in) const else p = buf; - if (std::strncmp(p, "<?xml", 5) == 0) { -#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) - throw parse_error("Ledger file contains XML data, but format was not recognized"); -#else - throw parse_error("Ledger file contains XML data, but no XML support present"); -#endif - } + if (std::strncmp(p, "<?xml", 5) == 0) + throw_(parse_error, + "Ledger file contains XML data, but format was not recognized"); in.clear(); in.seekg(0, std::ios::beg); |