Commit ff99ecf5 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Fix some const-correctness issues

parent ba70f53f
...@@ -67,7 +67,7 @@ public: ...@@ -67,7 +67,7 @@ public:
} }
bool isSame(const BoxIteratorImpl* _rhs) override { bool isSame(const BoxIteratorImpl* _rhs) override {
BoxIteratorGeneric* rhs = (BoxIteratorGeneric*)_rhs; const BoxIteratorGeneric* rhs = (const BoxIteratorGeneric*)_rhs;
return iterator == rhs->iterator && value == rhs->value; return iterator == rhs->iterator && value == rhs->value;
} }
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
void gcHandler(GCVisitor* v) override { v->visitPotential(obj); } void gcHandler(GCVisitor* v) override { v->visitPotential(obj); }
bool isSame(const BoxIteratorImpl* _rhs) override { bool isSame(const BoxIteratorImpl* _rhs) override {
auto rhs = (BoxIteratorIndex*)_rhs; const auto rhs = (const BoxIteratorIndex*)_rhs;
return obj == rhs->obj && index == rhs->index; return obj == rhs->obj && index == rhs->index;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment