Commit 60d2cb66 authored by Matthias Clasen's avatar Matthias Clasen

Use G_DEFINE_QUARK for quarks in GIO

parent b7d1518c
......@@ -35,16 +35,12 @@
/**
* g_io_error_quark:
*
*
* Gets the GIO Error Quark.
*
* Return value: a #GQuark.
**/
GQuark
g_io_error_quark (void)
{
return g_quark_from_static_string ("g-io-error-quark");
}
G_DEFINE_QUARK ("g-io-error-quark", g_io_error)
/**
* g_io_error_from_errno:
......
......@@ -874,12 +874,7 @@ g_resolver_lookup_records_finish (GResolver *resolver,
*
* Since: 2.22
*/
GQuark
g_resolver_error_quark (void)
{
return g_quark_from_static_string ("g-resolver-error-quark");
}
G_DEFINE_QUARK ("g-resolver-error-quark", g_resolver_error)
static GResolverError
g_resolver_error_from_addrinfo_error (gint err)
......
......@@ -138,11 +138,7 @@ G_DEFINE_BOXED_TYPE (GResource, g_resource, g_resource_ref, g_resource_unref)
*
* Since: 2.32
*/
GQuark
g_resource_error_quark (void)
{
return g_quark_from_static_string ("g-resource-error-quark");
}
G_DEFINE_QUARK ("g-resource-error-quark", g_resource_error)
/**
* g_resource_ref:
......
......@@ -831,12 +831,7 @@ g_tls_connection_handshake_finish (GTlsConnection *conn,
*
* Since: 2.28
*/
GQuark
g_tls_error_quark (void)
{
return g_quark_from_static_string ("g-tls-error-quark");
}
G_DEFINE_QUARK ("g-tls-error-quark", g_tls_error)
/**
* g_tls_connection_emit_accept_certificate:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment