[atk] tests: Use const instead G_CONST_RETURN
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] tests: Use const instead G_CONST_RETURN
- Date: Mon, 13 Jun 2011 10:53:01 +0000 (UTC)
commit 28ca51e39e84ee280e4352e752593d77810b1ba8
Author: Javier Jardón <jjardon gnome org>
Date: Thu Jun 9 16:24:04 2011 +0100
tests: Use const instead G_CONST_RETURN
tests/testrelation.c | 6 +++---
tests/teststateset.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/testrelation.c b/tests/testrelation.c
index 2385dcf..3fb3d91 100644
--- a/tests/testrelation.c
+++ b/tests/testrelation.c
@@ -28,7 +28,7 @@ static gboolean
test_relation (void)
{
AtkRelationType type1, type2;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
AtkObject *obj;
gboolean ret_value;
AtkRelationSet *set;
@@ -169,7 +169,7 @@ static gboolean
test_role (void)
{
AtkRole role1, role2;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
name = atk_role_get_name (ATK_ROLE_PAGE_TAB);
g_return_val_if_fail (name, FALSE);
@@ -230,7 +230,7 @@ static gboolean
test_text_attr (void)
{
AtkTextAttribute attr1, attr2;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
name = atk_text_attribute_get_name (ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP);
g_return_val_if_fail (name, FALSE);
diff --git a/tests/teststateset.c b/tests/teststateset.c
index b9cb8ce..27c15a9 100644
--- a/tests/teststateset.c
+++ b/tests/teststateset.c
@@ -208,7 +208,7 @@ static gboolean
test_state (void)
{
AtkStateType type1, type2;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
name = atk_state_type_get_name (ATK_STATE_VISIBLE);
g_return_val_if_fail (name, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]