From 546cafefa34dce85ecf2212dfc1ac968badabe36 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 1 Feb 2020 07:48:45 -0800 Subject: [PATCH] XPath: Add a clarification comment for ast_variable fallthrough --- src/pugixml.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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