@@ -920,11 +920,11 @@ double Node::getDouble() const {
920
920
}
921
921
922
922
923
- std::pair<Node const &, bool > Node::hasAsNode (
923
+ std::pair<Node const &, bool > Node::hasAsNode (
924
924
std::string const & url) const {
925
925
926
926
// *this is bogus initializer
927
- std::pair<Node const &, bool > fail_pair={*this , false };
927
+ std::pair<Node const &, bool > fail_pair= {*this , false };
928
928
929
929
// retrieve node, throws if does not exist
930
930
try {
@@ -941,11 +941,11 @@ std::pair<Node const &, bool> Node::hasAsNode (
941
941
} // hasAsNode
942
942
943
943
944
- std::pair<Node &, bool > Node::hasAsWritableNode (
944
+ std::pair<Node &, bool > Node::hasAsWritableNode (
945
945
std::string const & url) {
946
946
947
947
// *this is bogus initializer
948
- std::pair<Node &, bool > fail_pair={*this , false };
948
+ std::pair<Node &, bool > fail_pair= {*this , false };
949
949
950
950
// retrieve node, throws if does not exist
951
951
try {
@@ -962,7 +962,7 @@ std::pair<Node &, bool> Node::hasAsWritableNode (
962
962
} // hasAsWritableNode
963
963
964
964
965
- std::pair<NodeType, bool > Node::hasAsType (
965
+ std::pair<NodeType, bool > Node::hasAsType (
966
966
std::string const & url) const {
967
967
968
968
std::pair<NodeType, bool > ret_pair={NODE, false };
@@ -1004,14 +1004,14 @@ std::pair<Slice, bool> Node::hasAsSlice(
1004
1004
} // hasAsSlice
1005
1005
1006
1006
1007
- std::pair<uint64_t , bool > Node::hasAsUInt (
1007
+ std::pair<uint64_t , bool > Node::hasAsUInt (
1008
1008
std::string const & url) const {
1009
1009
std::pair<uint64_t , bool > ret_pair (0 , false );
1010
1010
1011
1011
// retrieve node, throws if does not exist
1012
1012
try {
1013
1013
Node const & target (operator ()(url));
1014
- ret_pair.first = target.getUInt ();
1014
+ ret_pair.first = target.getUInt ();
1015
1015
ret_pair.second = true ;
1016
1016
} catch (...) {
1017
1017
// do nothing, ret_pair second already false
@@ -1023,14 +1023,14 @@ std::pair<uint64_t, bool> Node::hasAsUInt (
1023
1023
} // hasAsUInt
1024
1024
1025
1025
1026
- std::pair<bool , bool > Node::hasAsBool (
1026
+ std::pair<bool , bool > Node::hasAsBool (
1027
1027
std::string const & url) const {
1028
1028
std::pair<bool , bool > ret_pair (false , false );
1029
1029
1030
1030
// retrieve node, throws if does not exist
1031
1031
try {
1032
1032
Node const & target (operator ()(url));
1033
- ret_pair.first = target.getBool ();
1033
+ ret_pair.first = target.getBool ();
1034
1034
ret_pair.second = true ;
1035
1035
} catch (...) {
1036
1036
// do nothing, ret_pair second already false
@@ -1042,16 +1042,16 @@ std::pair<bool, bool> Node::hasAsBool (
1042
1042
} // hasAsBool
1043
1043
1044
1044
1045
- std::pair<std::string, bool > Node::hasAsString (
1045
+ std::pair<std::string, bool > Node::hasAsString (
1046
1046
std::string const & url) const {
1047
1047
std::pair<std::string, bool > ret_pair;
1048
1048
1049
- ret_pair.second = false ;
1049
+ ret_pair.second = false ;
1050
1050
1051
1051
// retrieve node, throws if does not exist
1052
1052
try {
1053
1053
Node const & target (operator ()(url));
1054
- ret_pair.first = target.getString ();
1054
+ ret_pair.first = target.getString ();
1055
1055
ret_pair.second = true ;
1056
1056
} catch (...) {
1057
1057
// do nothing, ret_pair second already false
@@ -1063,7 +1063,7 @@ std::pair<std::string, bool> Node::hasAsString (
1063
1063
} // hasAsString
1064
1064
1065
1065
1066
- std::pair<Node::Children, bool > Node::hasAsChildren (
1066
+ std::pair<Node::Children, bool > Node::hasAsChildren (
1067
1067
std::string const & url) const {
1068
1068
std::pair<Children, bool > ret_pair;
1069
1069
@@ -1072,7 +1072,7 @@ std::pair<Node::Children, bool> Node::hasAsChildren (
1072
1072
// retrieve node, throws if does not exist
1073
1073
try {
1074
1074
Node const & target (operator ()(url));
1075
- ret_pair.first = target.children ();
1075
+ ret_pair.first = target.children ();
1076
1076
ret_pair.second = true ;
1077
1077
} catch (...) {
1078
1078
// do nothing, ret_pair second already false
@@ -1084,7 +1084,7 @@ std::pair<Node::Children, bool> Node::hasAsChildren (
1084
1084
} // hasAsChildren
1085
1085
1086
1086
1087
- std::pair<void *, bool > Node::hasAsBuilder (
1087
+ std::pair<void *, bool > Node::hasAsBuilder (
1088
1088
std::string const & url, Builder & builder, bool showHidden) const {
1089
1089
std::pair<void *, bool > ret_pair (nullptr , false );
1090
1090
@@ -1103,7 +1103,7 @@ std::pair<void *, bool> Node::hasAsBuilder (
1103
1103
} // hasAsBuilder
1104
1104
1105
1105
1106
- std::pair<Builder, bool > Node::hasAsBuilder (
1106
+ std::pair<Builder, bool > Node::hasAsBuilder (
1107
1107
std::string const & url) const {
1108
1108
Builder builder;
1109
1109
std::pair<Builder, bool > ret_pair (builder, false );
0 commit comments