Use G_DEFINE_QUARK for GLib's own quarks
[platform/upstream/glib.git] / glib / gshell.c
index 205519e..2ea144b 100644 (file)
  *
  * Error codes returned by shell functions.
  **/
-GQuark
-g_shell_error_quark (void)
-{
-  return g_quark_from_static_string ("g-shell-error-quark");
-}
+G_DEFINE_QUARK ("g-shell-error-quark", g_shell_error)
 
 /* Single quotes preserve the literal string exactly. escape
  * sequences are not allowed; not even \' - if you want a '