diff options
| author | vvvv <[email protected]> | 2025-06-23 13:38:54 +0300 |
|---|---|---|
| committer | vvvv <[email protected]> | 2025-06-23 14:22:17 +0300 |
| commit | 99a63eaece7367f17dac58e66e45043aa641d9f7 (patch) | |
| tree | d104b51aab8eaf495f95d81525716e34b5bef983 /yql/essentials/minikql/dom/node.cpp | |
| parent | a731af300f45dd4cb0f3fd3b24c8213fe1425068 (diff) | |
YQL-20086 minikql
commit_hash:c35c972d6708fb1b3f34fa34a42cdae1ddf11cdc
Diffstat (limited to 'yql/essentials/minikql/dom/node.cpp')
| -rw-r--r-- | yql/essentials/minikql/dom/node.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yql/essentials/minikql/dom/node.cpp b/yql/essentials/minikql/dom/node.cpp index 64458dea8d5..2f04bf59173 100644 --- a/yql/essentials/minikql/dom/node.cpp +++ b/yql/essentials/minikql/dom/node.cpp @@ -22,17 +22,17 @@ inline bool StringEquals(const TPair& x, const TPair& y) { template <bool NoSwap> TMapNode::TIterator<NoSwap>::TIterator(const TMapNode* parent) - : Parent(const_cast<TMapNode*>(parent)) - , Index(-1) + : Parent_(const_cast<TMapNode*>(parent)) + , Index_(-1) {} template <bool NoSwap> bool TMapNode::TIterator<NoSwap>::Skip() { - if (Index + 1 == Parent->UniqueCount_) { + if (Index_ + 1 == Parent_->UniqueCount_) { return false; } - ++Index; + ++Index_; return true; } @@ -41,9 +41,9 @@ bool TMapNode::TIterator<NoSwap>::Next(TUnboxedValue& key) { if (!Skip()) return false; if constexpr (NoSwap) { - key = Parent->Items_[Index].first; + key = Parent_->Items_[Index_].first; } else { - key = Parent->Items_[Index].second; + key = Parent_->Items_[Index_].second; } return true; } @@ -53,9 +53,9 @@ bool TMapNode::TIterator<NoSwap>::NextPair(TUnboxedValue& key, TUnboxedValue& pa if (!Next(key)) return false; if constexpr (NoSwap) { - payload = Parent->Items_[Index].second; + payload = Parent_->Items_[Index_].second; } else { - payload = Parent->Items_[Index].first; + payload = Parent_->Items_[Index_].first; } return true; } |
