mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Drop trailing semi-colon from G_DEFINE_ macro
It's unnecessary, and only adds visual noise; we have been fairly inconsistent in the past, but the semi-colon-less version clearly dominates in the code base. https://bugzilla.gnome.org/show_bug.cgi?id=669355
This commit is contained in:
committed by
Philip Withnall
parent
fb7d2184a6
commit
f952fdf3fc
@@ -938,7 +938,7 @@ G_END_DECLS
|
||||
</para></listitem>
|
||||
</itemizedlist>
|
||||
<informalexample><programlisting>
|
||||
G_DEFINE_INTERFACE (ViewerEditable, viewer_editable, G_TYPE_OBJECT);
|
||||
G_DEFINE_INTERFACE (ViewerEditable, viewer_editable, G_TYPE_OBJECT)
|
||||
|
||||
static void
|
||||
viewer_editable_default_init (ViewerEditableInterface *iface)
|
||||
@@ -1091,7 +1091,7 @@ viewer_file_init (ViewerFile *self)
|
||||
the GObject equivalent:
|
||||
<informalexample><programlisting>
|
||||
/* Make the ViewerEditableLossy interface require ViewerEditable interface. */
|
||||
G_DEFINE_INTERFACE (ViewerEditableLossy, viewer_editable_lossy, VIEWER_TYPE_EDITABLE);
|
||||
G_DEFINE_INTERFACE (ViewerEditableLossy, viewer_editable_lossy, VIEWER_TYPE_EDITABLE)
|
||||
</programlisting></informalexample>
|
||||
In the <function><link linkend="G-DEFINE-INTERFACE:CAPS">G_DEFINE_INTERFACE</link></function>
|
||||
call above, the third parameter defines the prerequisite type. This
|
||||
|
Reference in New Issue
Block a user