diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-02-01 07:48:45 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-02-01 07:48:45 -0800 |
commit | 546cafefa34dce85ecf2212dfc1ac968badabe36 (patch) | |
tree | 07ea46bd94f3c47d3af5e68d3b991b702861f761 | |
parent | 85a39b955d353b4db3bafc044b01fbdac43e5183 (diff) | |
download | pugixml-546cafefa34dce85ecf2212dfc1ac968badabe36.zip pugixml-546cafefa34dce85ecf2212dfc1ac968badabe36.tar.gz pugixml-546cafefa34dce85ecf2212dfc1ac968badabe36.tar.bz2 |
XPath: Add a clarification comment for ast_variable fallthrough
-rw-r--r-- | src/pugixml.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 156a1f4..9b6c1b6 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -10414,6 +10414,8 @@ PUGI__NS_BEGIN if (_rettype == xpath_type_boolean) return _data.variable->get_boolean(); + + // variable needs to be converted to the correct type, this is handled by the default statement below } // fallthrough @@ -10549,6 +10551,8 @@ PUGI__NS_BEGIN if (_rettype == xpath_type_number) return _data.variable->get_number(); + + // variable needs to be converted to the correct type, this is handled by the default statement below } // fallthrough @@ -10833,6 +10837,8 @@ PUGI__NS_BEGIN if (_rettype == xpath_type_string) return xpath_string::from_const(_data.variable->get_string()); + + // variable needs to be converted to the correct type, this is handled by the default statement below } // fallthrough @@ -10982,6 +10988,8 @@ PUGI__NS_BEGIN return ns; } + + // variable needs to be converted to the correct type, this is handled by the default statement below } // fallthrough |