aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjansenin <jansenin@yandex-team.com>2023-08-21 17:54:04 +0300
committerjansenin <jansenin@yandex-team.com>2023-08-21 18:12:22 +0300
commit8f953a0df86adb6c305daaa7fd5b095aa1eada3d (patch)
tree6b83a9ae9b87d0bbd4df9de0c564fff9bbd149c5
parent6128c83f475b712a95f262e363dd2d3681500a0e (diff)
downloadydb-8f953a0df86adb6c305daaa7fd5b095aa1eada3d.tar.gz
make has method const
-rw-r--r--library/cpp/yaml/fyamlcpp/fyamlcpp.cpp2
-rw-r--r--library/cpp/yaml/fyamlcpp/fyamlcpp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yaml/fyamlcpp/fyamlcpp.cpp b/library/cpp/yaml/fyamlcpp/fyamlcpp.cpp
index d990d056e3..4bfae03994 100644
--- a/library/cpp/yaml/fyamlcpp/fyamlcpp.cpp
+++ b/library/cpp/yaml/fyamlcpp/fyamlcpp.cpp
@@ -417,7 +417,7 @@ void TMapping::Remove(const TNodePairRef& toRemove) {
free(toRemove.Pair_);
}
-bool TMapping::Has(TString key) {
+bool TMapping::Has(TString key) const {
return fy_node_mapping_lookup_by_string(Node_, key.data(), key.size()) != nullptr;
}
diff --git a/library/cpp/yaml/fyamlcpp/fyamlcpp.h b/library/cpp/yaml/fyamlcpp/fyamlcpp.h
index 72936b44bc..4542386846 100644
--- a/library/cpp/yaml/fyamlcpp/fyamlcpp.h
+++ b/library/cpp/yaml/fyamlcpp/fyamlcpp.h
@@ -487,7 +487,7 @@ public:
void Remove(const TNodePairRef& toRemove);
- bool Has(TString key);
+ bool Has(TString key) const;
TMappingIterator Remove(const TMappingIterator& toRemove);