summaryrefslogtreecommitdiff
path: root/json-glib/json-path.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-05-16 10:02:50 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-05-16 10:05:20 +0100
commitc912213d05ea9cacb5ba87f25c76581737c6fbf6 (patch)
treee14aae9acb3bd06984c4bbe9eba343b857b6202f /json-glib/json-path.c
parentff226427bd4ab911f30a985a2c60e3eaca51c066 (diff)
downloadjson-glib-c912213d05ea9cacb5ba87f25c76581737c6fbf6.tar.gz
Use G_DEFINE_QUARK macro
Instead of hand-writing the error domain function ourselves.
Diffstat (limited to 'json-glib/json-path.c')
-rw-r--r--json-glib/json-path.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/json-glib/json-path.c b/json-glib/json-path.c
index 4fb61bc..56a6858 100644
--- a/json-glib/json-path.c
+++ b/json-glib/json-path.c
@@ -260,6 +260,8 @@ struct _PathNode
} data;
};
+G_DEFINE_QUARK (json-path-error-quark, json_path_error)
+
G_DEFINE_TYPE (JsonPath, json_path, G_TYPE_OBJECT)
static void
@@ -308,12 +310,6 @@ json_path_init (JsonPath *self)
{
}
-GQuark
-json_path_error_quark (void)
-{
- return g_quark_from_static_string ("json-path-error");
-}
-
/**
* json_path_new:
*