More virtual base fixups.

This commit is contained in:
2025-08-23 08:55:48 -04:00
parent 0bc863faf1
commit 13f931d82e
13 changed files with 31 additions and 31 deletions

View File

@ -220,9 +220,9 @@ EmptyIterator::EmptyIterator (EmptyIterator &it): Iterator (it)
{
}
object::Object *EmptyIterator::clone ()
object::Object *EmptyIterator::clone () const
{
return new EmptyIterator (*this);
return new EmptyIterator (const_cast< EmptyIterator & >( *this ));
}
int EmptyIterator::compareTo (object::Comparable *other)
@ -595,7 +595,7 @@ DeepIterator::~DeepIterator ()
//printf ("Deleting DeepIterator %p ...\n", this);
}
object::Object *DeepIterator::clone ()
object::Object *DeepIterator::clone () const
{
DeepIterator *it = new DeepIterator ();
@ -762,7 +762,7 @@ CharIterator::~CharIterator ()
delete it;
}
object::Object *CharIterator::clone()
object::Object *CharIterator::clone() const
{
CharIterator *cloned = new CharIterator ();
cloned->it = it->cloneDeepIterator ();