[glib/sam/use-g-define-quark] Update GError docs to use G_DEFINE_QUARK
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/sam/use-g-define-quark] Update GError docs to use G_DEFINE_QUARK
- Date: Wed, 26 Feb 2020 19:06:48 +0000 (UTC)
commit dcbaae4fa231645fc4eddf43b27c527ec966f6c0
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Feb 26 20:01:10 2020 +0100
Update GError docs to use G_DEFINE_QUARK
glib/gerror.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/glib/gerror.c b/glib/gerror.c
index cf20bc8c0..86167d7e5 100644
--- a/glib/gerror.c
+++ b/glib/gerror.c
@@ -264,11 +264,7 @@
* |[<!-- language="C" -->
* #define G_SPAWN_ERROR g_spawn_error_quark ()
*
- * GQuark
- * g_spawn_error_quark (void)
- * {
- * return g_quark_from_static_string ("g-spawn-error-quark");
- * }
+ * G_DEFINE_QUARK (g-spawn-error-quark, g_spawn_error)
* ]|
*
* - The quark function for the error domain is called
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]