Use G_DEFINE_QUARK for GLib's own quarks

This commit just deals with glib/.
gobject/ and gio/ will be handled in separate commits.
This commit is contained in:
Matthias Clasen
2012-08-27 23:36:42 -04:00
parent 702b448865
commit 4f12f7c029
14 changed files with 17 additions and 98 deletions

View File

@@ -1229,16 +1229,7 @@ g_match_info_fetch_all (const GMatchInfo *match_info)
/* GRegex */
GQuark
g_regex_error_quark (void)
{
static GQuark error_quark = 0;
if (error_quark == 0)
error_quark = g_quark_from_static_string ("g-regex-error-quark");
return error_quark;
}
G_DEFINE_QUARK ("g-regex-error-quark", g_regex_error)
/**
* g_regex_ref: