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 319591 - Use G_DEFINE_TYPE in libedataserver
Use G_DEFINE_TYPE in libedataserver
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
1.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Harish Krishnaswamy
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-10-24 11:32 UTC by Ross Burton
Modified: 2005-11-17 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use G_DEFINE_TYPE (18.64 KB, patch)
2005-10-24 11:32 UTC, Ross Burton
accepted-commit_now Details | Review

Description Ross Burton 2005-10-24 11:32:27 UTC
Attaching a patch to use G_DEFINE_TYPE in libedataserver/.

This saves memory (the type arrays are now constant, and the type name is not
duplicated) and cleans the code considerably.  It also sneaks a few const
declarations in.
Comment 1 Ross Burton 2005-10-24 11:32:46 UTC
Created attachment 53827 [details] [review]
Use G_DEFINE_TYPE
Comment 2 André Klapper 2005-10-26 10:47:22 UTC
adding memory keyword
Comment 3 parthasarathi susarla 2005-11-17 09:59:40 UTC
Looks fine.
Comment 4 Ross Burton 2005-11-17 11:38:50 UTC
Committed to HEAD, thanks.