[glibmm] Unbreak List_Iterator::operator->()
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glibmm] Unbreak List_Iterator::operator->()
- Date: Sun, 16 Aug 2009 21:56:38 +0000 (UTC)
commit cf1100be8bab2b641c5de316ffc948b717c8d2cf
Author: Daniel Elstner <daniel kitta gmail com>
Date: Sun Aug 16 23:55:49 2009 +0200
Unbreak List_Iterator::operator->()
* glib/glibmm/containers.h ({S,}List_Iterator::operator->):
Use &**this, not &*this. Oops.
ChangeLog | 7 +++++++
glib/glibmm/containers.h | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ffe8f9f..1b56547 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-08-16 Daniel Elstner <daniel kitta gmail com>
+ Unbreak List_Iterator::operator->()
+
+ * glib/glibmm/containers.h ({S,}List_Iterator::operator->):
+ Use &**this, not &*this. Oops.
+
+2009-08-16 Daniel Elstner <daniel kitta gmail com>
+
Define GLIBMM_USING_STD() as dummy no-op
* glib/glibmmconfig.h.in (GLIBMM_USING_STD): Resurrect macro
diff --git a/glib/glibmm/containers.h b/glib/glibmm/containers.h
index bad040e..8775495 100644
--- a/glib/glibmm/containers.h
+++ b/glib/glibmm/containers.h
@@ -122,7 +122,7 @@ public:
return *(pointer)( node_ ? node_->data : glibmm_null_pointer );
}
- pointer operator->() const { return &*this; }
+ pointer operator->() const { return &**this; }
};
///For instance, SList_Iterator< Gtk::Widget >
@@ -173,7 +173,7 @@ public:
return reinterpret_cast<T&>( node_ ? node_->data : glibmm_null_pointer );
}
- pointer operator->() const { return &*this; }
+ pointer operator->() const { return &**this; }
};
@@ -231,7 +231,7 @@ public:
return *static_cast<pointer>(0); // boom!
}
- pointer operator->() const { return &*this; }
+ pointer operator->() const { return &**this; }
Self& operator++()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]