summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-04-14 23:27:06 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-04-14 23:27:59 -0700
commit43b0a6a0a385e61b70cd9f52a41c59aa9774b236 (patch)
tree764a70557d287c99f48d212e6744ff93d87967b0
parent24a7064e57300840cf5add6ff47fe34174a68366 (diff)
Clarify comment in get_strconv_attribute
This might have helped a bit with confusion in #195.
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
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<opt_false>::parse_simple;
case 1: return strconv_attribute_impl<opt_true>::parse_simple;