summaryrefslogtreecommitdiff
path: root/dw/iterator.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-03-05 11:34:03 +0100
committerSebastian Geerken <devnull@localhost>2013-03-05 11:34:03 +0100
commit9c98b3c16041ebd41aabbb82e71d424a940a1d47 (patch)
tree496d8b2648a5ad072a2d78b932a4129e7d3dd12d /dw/iterator.cc
parent49ad0b5252190ffbfb4511131af2032f7f341a60 (diff)
Comparable is now subclass of Object (not pseudo-interface anymore). The old solution would have made RTTI neccessary to work correctly.
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r--dw/iterator.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc
index 5f46cbdb..18d7cd5a 100644
--- a/dw/iterator.cc
+++ b/dw/iterator.cc
@@ -37,7 +37,7 @@ Iterator::Iterator(Widget *widget, Content::Type mask, bool atEnd)
this->mask = mask;
}
-Iterator::Iterator(Iterator &it): object::Object (), misc::Comparable ()
+Iterator::Iterator(Iterator &it): object::Comparable ()
{
widget = it.widget;
content = it.content;
@@ -205,7 +205,7 @@ object::Object *EmptyIterator::clone ()
return new EmptyIterator (*this);
}
-int EmptyIterator::compareTo (misc::Comparable *other)
+int EmptyIterator::compareTo (object::Comparable *other)
{
EmptyIterator *otherIt = (EmptyIterator*)other;
@@ -257,7 +257,7 @@ TextIterator::TextIterator (TextIterator &it): Iterator (it)
text = it.text;
}
-int TextIterator::compareTo (misc::Comparable *other)
+int TextIterator::compareTo (object::Comparable *other)
{
TextIterator *otherIt = (TextIterator*)other;
@@ -535,7 +535,7 @@ object::Object *DeepIterator::clone ()
return it;
}
-int DeepIterator::compareTo (misc::Comparable *other)
+int DeepIterator::compareTo (object::Comparable *other)
{
DeepIterator *otherDeepIterator = (DeepIterator*)other;
@@ -665,7 +665,7 @@ object::Object *CharIterator::clone()
return cloned;
}
-int CharIterator::compareTo(misc::Comparable *other)
+int CharIterator::compareTo(object::Comparable *other)
{
CharIterator *otherIt = (CharIterator*)other;
int c = it->compareTo(otherIt->it);