Revert "make *_get_instance_private const-compliant"
commit85a23529ab8e3de4656c134fc3a380db91b1d762
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 18 Jan 2016 18:48:42 +0000 (18 18:48 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 18 Jan 2016 18:48:42 +0000 (18 18:48 +0000)
treec1e092cfb32f9e085b6a87c910e5684c868a6b34
parent617189f28c5d3eb05d7d09fe453b6f98c87d8a40
Revert "make *_get_instance_private const-compliant"

This reverts commit a3a9664ed202303b899ca55625877542309d1a1f.

Constifying the autogenerated get_instance_private functio makes C++
compilers and GCC with -Wcast-qual warn during compilation of GLib and
projects depending on GLib.

Since using const with GObject instances is not a common coding
practice, it's better to revert than trying to make every sigle GType
function const-safe (and possibly add more compiler warnings in the
process).

https://bugzilla.gnome.org/show_bug.cgi?id=745068
gobject/gtype.h