[glib] Use g_set_error_literal where appropriate
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use g_set_error_literal where appropriate
- Date: Mon, 19 Apr 2010 18:21:14 +0000 (UTC)
commit 27d2dbacd4d4833c9846a2872cb04f7bced3a3c3
Author: Christian Persch <chpe gnome org>
Date: Mon Apr 19 14:18:59 2010 -0400
Use g_set_error_literal where appropriate
gio/gschema-compile.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gio/gschema-compile.c b/gio/gschema-compile.c
index 3a657bb..4e2de4d 100644
--- a/gio/gschema-compile.c
+++ b/gio/gschema-compile.c
@@ -56,8 +56,8 @@ is_valid_keyname (const gchar *key,
if (key[0] == '\0')
{
- g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
- "empty names are not permitted");
+ g_set_error_literal (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "empty names are not permitted");
return FALSE;
}
@@ -255,10 +255,10 @@ start_element (GMarkupParseContext *context,
if (domain == NULL)
{
- g_set_error (error, G_MARKUP_ERROR,
- G_MARKUP_ERROR_INVALID_CONTENT,
- "l10n requested, but no "
- "gettext domain given");
+ g_set_error_literal (error, G_MARKUP_ERROR,
+ G_MARKUP_ERROR_INVALID_CONTENT,
+ "l10n requested, but no "
+ "gettext domain given");
return;
}
@@ -285,10 +285,10 @@ start_element (GMarkupParseContext *context,
if (state->context != NULL)
{
- g_set_error (error, G_MARKUP_ERROR,
- G_MARKUP_ERROR_INVALID_CONTENT,
- "translation context given for "
- " value without l10n enabled");
+ g_set_error_literal (error, G_MARKUP_ERROR,
+ G_MARKUP_ERROR_INVALID_CONTENT,
+ "translation context given for "
+ " value without l10n enabled");
return;
}
}
@@ -394,7 +394,7 @@ end_element (GMarkupParseContext *context,
{
g_set_error_literal (error,
G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
- "Element <default> is required in <key>\n");
+ "element <default> is required in <key>\n");
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]