mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-13 17:37:58 +08:00
XPath: Add a clarification comment for ast_variable fallthrough
This commit is contained in:
parent
85a39b955d
commit
546cafefa3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user