diff options
author | Murray Cumming <murrayc@murrayc.com> | 2015-08-22 11:45:03 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-08-22 13:03:54 +0200 |
commit | ceb43c2bc0edd56f43970c4e85123c7a4fcd5560 (patch) | |
tree | 3fe45ce6f020067ca66c114bf98c106457128a1e /glib/src/bytearray.hg | |
parent | 90f5049d15ae59878392571d6841ac38dee2d978 (diff) | |
download | glibmm-ceb43c2bc0edd56f43970c4e85123c7a4fcd5560.tar.gz |
C++11: Mark all _CLASS_OPAQUE_REFCOUNTED classes as final.
Because _CLASS_OPAQUE_REFCOUNTED already generates a comment
telling us not to derive from them, presumably because they can
only be instantiated by reinterpret_cast<>ing a base C struct.
Ideally, _CLASS_OPAQUE_REFCOUNTED would add the final keyword,
but the class line is is not generated, so that would be a little
difficult.
Diffstat (limited to 'glib/src/bytearray.hg')
-rw-r--r-- | glib/src/bytearray.hg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/src/bytearray.hg b/glib/src/bytearray.hg index 54292758..1db85d84 100644 --- a/glib/src/bytearray.hg +++ b/glib/src/bytearray.hg @@ -42,7 +42,7 @@ namespace Glib * * @newin{2,36} */ -class ByteArray +class ByteArray final { _CLASS_OPAQUE_REFCOUNTED(ByteArray, GByteArray, NONE, g_byte_array_ref, g_byte_array_unref) _IGNORE(g_byte_array_ref, g_byte_array_unref) |