mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +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
@@ -715,7 +715,7 @@ viewer_file_editable_interface_init (ViewerEditableInterface *iface)
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (ViewerFile, viewer_file, VIEWER_TYPE_FILE,
|
||||
G_IMPLEMENT_INTERFACE (VIEWER_TYPE_EDITABLE,
|
||||
viewer_file_editable_interface_init));
|
||||
viewer_file_editable_interface_init))
|
||||
</programlisting></informalexample>
|
||||
</para>
|
||||
|
||||
@@ -836,7 +836,7 @@ struct _GInterfaceInfo
|
||||
<link linkend="G-DEFINE-INTERFACE:CAPS">G_DEFINE_INTERFACE</link>
|
||||
which can be used to define the interface:
|
||||
<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)
|
||||
|
@@ -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