Re: [gtkmm] Glib::RefPtr construction
- From: Daniel Elstner <daniel elstner gmx net>
- To: murrayc usa net
- Cc: Michael Johnson <michaelj maine rr com>, gtkmm mailing list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Glib::RefPtr construction
- Date: 08 Jan 2003 11:38:04 +0100
On Mit, 2003-01-08 at 09:08, Murray Cumming wrote:
> Yes, maybe that operator=(T_CppObject*) should be the same as the
> constructor. I'm not sure when that operator= is used anyway. Maybe it's
> safe to change it.
RefPtr<>::operator=(T_CppObject*) should not be changed but removed
entirely. I already added a TODO comment about this.
I think Karl added operator=(T_CppObject*) as a "convenience" when he
changed the menu helper classes to use RefPtr<>. It should be removed
because it's a) a misnomer, the canonical name would be reset() b)
useless since there is the ctor already c) inconsistent wrt. reference
counting.
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]