From fc290fc84a1a5de9d8b6ddc15931e98c8dbec8fc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 18 Oct 2017 16:57:02 +0200 Subject: Move assertion to beginning of next_expect() functions --- libstudxml/parser.ixx | 6 +++--- 1 file 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); } } -- cgit v1.1