diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-18 16:57:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-18 16:57:02 +0200 |
commit | fc290fc84a1a5de9d8b6ddc15931e98c8dbec8fc (patch) | |
tree | af894ff661cc513800b17de4184a3d1743381d9d | |
parent | adf1a3a0ee6af83dd1ae645dd38122dee121029f (diff) |
Move assertion to beginning of next_expect() functions
-rw-r--r-- | libstudxml/parser.ixx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstudxml/parser.ixx b/libstudxml/parser.ixx index bda82e5..4a9ea3d 100644 --- a/libstudxml/parser.ixx +++ b/libstudxml/parser.ixx @@ -215,16 +215,16 @@ namespace xml inline void parser:: next_expect (event_type e, const qname_type& qn, content_type c) { - next_expect (e, qn); assert (e == start_element); + next_expect (e, qn); content (c); } inline void parser:: next_expect (event_type e, const std::string& n, content_type c) { - next_expect (e, std::string (), n); assert (e == start_element); + next_expect (e, std::string (), n); content (c); } @@ -233,8 +233,8 @@ namespace xml const std::string& ns, const std::string& n, content_type c) { - next_expect (e, ns, n); assert (e == start_element); + next_expect (e, ns, n); content (c); } } |