Skip to content

Commit

Permalink
Fix PUGIXML_STRING_VIEW to PUGIXML_HAS_STRING_VIEW
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ignatoff committed Oct 23, 2024
1 parent affa18f commit 7432316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_dom_traverse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ TEST_XML(dom_node_anonymous_attribute, "<node attr='0'/>")
CHECK_NAME_VALUE(doc.first_child().first_attribute(), STR(""), STR("0"));

CHECK(doc.first_child().attribute(STR("")) == xml_attribute());
#ifdef PUGIXML_STRING_VIEW
#ifdef PUGIXML_HAS_STRING_VIEW
CHECK(doc.first_child().attribute(string_view_t()) == xml_attribute());
CHECK(doc.first_child().attribute(string_view_t(STR("hi"), 0)) == xml_attribute());
#endif
Expand Down

0 comments on commit 7432316

Please sign in to comment.