Skip to content

Commit

Permalink
Clarify comment in get_strconv_attribute
Browse files Browse the repository at this point in the history
This might have helped a bit with confusion in zeux#195.
  • Loading branch information
zeux committed Apr 15, 2018
1 parent 24a7064 commit 43b0a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pugixml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43b0a6a

Please sign in to comment.