0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-14 01:47:55 +08:00

XPath: Add a clarification comment for ast_variable fallthrough

This commit is contained in:
Arseny Kapoulkine 2020-02-01 07:48:45 -08:00
parent 85a39b955d
commit 546cafefa3

View File

@ -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