After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 88629 - const methods
const methods
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-19 17:05 UTC by Jarek Dukat
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch... (34.98 KB, patch)
2002-07-19 17:07 UTC, Jarek Dukat
none Details | Review

Description Jarek Dukat 2002-07-19 17:05:06 UTC
It is a looong ago promised patch. It fixes some more methods to be const
and add overloaded methods like:
Obj* Foo::bar();
const Obj* Foo::bar() const;
and
Glib::RefPtr<Obj> Foo::bar();
Glib::RefPtr<const Obj> Foo::bar() const;

But I didn't make all possible changes. I'm just not sure what to do with
most methods returning RefPtr<Gdk::...> and RefPtr<Pango::...>.
Also it is not obvious for me if Gtk::Widget, Gtk::Style and other objects'
methods should return const pointers, so I did not modify them.
Comment 1 Jarek Dukat 2002-07-19 17:07:42 UTC
Created attachment 9969 [details] [review]
Patch...
Comment 2 Murray Cumming 2002-07-19 19:40:29 UTC
Thanks for your hard work. Please discuss specific, or example,
problem methods on gtkmm-list.