From 43b0a6a0a385e61b70cd9f52a41c59aa9774b236 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 14 Apr 2018 23:27:06 -0700 Subject: Clarify comment in get_strconv_attribute This might have helped a bit with confusion in #195. --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 2afff09..f0eace4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2878,7 +2878,7 @@ PUGI__NS_BEGIN { PUGI__STATIC_ASSERT(parse_escapes == 0x10 && parse_eol == 0x20 && parse_wconv_attribute == 0x40 && parse_wnorm_attribute == 0x80); - switch ((optmask >> 4) & 15) // get bitmask for flags (wconv wnorm eol escapes) + switch ((optmask >> 4) & 15) // get bitmask for flags (wnorm wconv eol escapes); this simultaneously checks 4 options from assertion above { case 0: return strconv_attribute_impl::parse_simple; case 1: return strconv_attribute_impl::parse_simple; -- cgit v1.2.3