GLib/GObject+C as the lingua franca?
kevin.krammer at gmx.at
Sun Jul 27 23:45:21 BST 2008
On Sunday 27 July 2008, nf2 wrote:
> GO &operator=(const GO &other)
> if (p != NULL)
> p = other.p;
> return *this;
Assignment operators should always check for self-assignment first, otherwise
bad things might happen, like in this case where p gets deleted if the object
is the only reference to it.
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the kde-core-devel