[gobject-introspection] tests: Use g_error_new_literal() for literal string
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Use g_error_new_literal() for literal string
- Date: Sat, 31 Mar 2018 00:53:54 +0000 (UTC)
commit 472ee457ca63c5d285892090789dc17b34db505b
Author: Philip Chimento <philip endlessm com>
Date: Sun Mar 11 22:37:48 2018 -0700
tests: Use g_error_new_literal() for literal string
tests/gimarshallingtests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 44a4ab30..f6ac1c57 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -5182,7 +5182,7 @@ gi_marshalling_tests_gerror_return (void)
{
GQuark quark = g_quark_from_static_string (GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN);
- return g_error_new (quark, GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE,
GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE);
+ return g_error_new_literal (quark, GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE,
GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE);
}
static GIMarshallingTestsOverridesStruct *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]