Skip to content

Commit

Permalink
fix constness for empty_on()
Browse files Browse the repository at this point in the history
  • Loading branch information
mkornaukhov03 committed Nov 5, 2024
1 parent ef83463 commit 31b911f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime-common/core/core-types/decl/mixed_decl.inl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public:

bool empty() const;
// todo with non mixed key
bool empty_on(const mixed &key);
bool empty_on(const mixed &key) const;
int64_t count() const;
int64_t compare(const mixed &rhs) const;

Expand Down
2 changes: 1 addition & 1 deletion runtime-common/core/core-types/definition/mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ const string mixed::get_type_str() const {
return string(get_type_c_str());
}

bool mixed::empty_on(const mixed &key) {
bool mixed::empty_on(const mixed &key) const {
if (type_ == type::OBJECT) {
// todo f$is_a
auto xxx = from_mixed<class_instance<C$ArrayAccess>>(*this, string());
Expand Down

0 comments on commit 31b911f

Please sign in to comment.