Remove all uses of G_CONST_RETURN

Just use 'const'.

https://bugzilla.gnome.org/show_bug.cgi?id=644611
This commit is contained in:
Ryan Lortie
2011-03-12 21:50:45 -05:00
parent 8f21e8145c
commit 8073759f8c
34 changed files with 122 additions and 122 deletions

View File

@@ -742,7 +742,7 @@ g_binding_get_target (GBinding *binding)
*
* Since: 2.26
*/
G_CONST_RETURN gchar *
const gchar *
g_binding_get_source_property (GBinding *binding)
{
g_return_val_if_fail (G_IS_BINDING (binding), NULL);
@@ -761,7 +761,7 @@ g_binding_get_source_property (GBinding *binding)
*
* Since: 2.26
*/
G_CONST_RETURN gchar *
const gchar *
g_binding_get_target_property (GBinding *binding)
{
g_return_val_if_fail (G_IS_BINDING (binding), NULL);

View File

@@ -106,8 +106,8 @@ GType g_binding_get_type (void) G_GNUC_CONST;
GBindingFlags g_binding_get_flags (GBinding *binding);
GObject * g_binding_get_source (GBinding *binding);
GObject * g_binding_get_target (GBinding *binding);
G_CONST_RETURN gchar *g_binding_get_source_property (GBinding *binding);
G_CONST_RETURN gchar *g_binding_get_target_property (GBinding *binding);
const gchar * g_binding_get_source_property (GBinding *binding);
const gchar * g_binding_get_target_property (GBinding *binding);
GBinding *g_object_bind_property (gpointer source,
const gchar *source_property,

View File

@@ -277,7 +277,7 @@ g_param_spec_ref_sink (GParamSpec *pspec)
*
* Returns: the name of @pspec.
*/
G_CONST_RETURN gchar*
const gchar *
g_param_spec_get_name (GParamSpec *pspec)
{
g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL);
@@ -293,7 +293,7 @@ g_param_spec_get_name (GParamSpec *pspec)
*
* Returns: the nickname of @pspec.
*/
G_CONST_RETURN gchar*
const gchar *
g_param_spec_get_nick (GParamSpec *pspec)
{
g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL);
@@ -320,7 +320,7 @@ g_param_spec_get_nick (GParamSpec *pspec)
*
* Returns: the short description of @pspec.
*/
G_CONST_RETURN gchar*
const gchar *
g_param_spec_get_blurb (GParamSpec *pspec)
{
g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL);

View File

@@ -301,9 +301,9 @@ gboolean g_param_value_convert (GParamSpec *pspec,
gint g_param_values_cmp (GParamSpec *pspec,
const GValue *value1,
const GValue *value2);
G_CONST_RETURN gchar* g_param_spec_get_name (GParamSpec *pspec);
G_CONST_RETURN gchar* g_param_spec_get_nick (GParamSpec *pspec);
G_CONST_RETURN gchar* g_param_spec_get_blurb (GParamSpec *pspec);
const gchar * g_param_spec_get_name (GParamSpec *pspec);
const gchar * g_param_spec_get_nick (GParamSpec *pspec);
const gchar * g_param_spec_get_blurb (GParamSpec *pspec);
void g_value_set_param (GValue *value,
GParamSpec *param);
GParamSpec* g_value_get_param (const GValue *value);

View File

@@ -1223,7 +1223,7 @@ g_signal_list_ids (GType itype,
*
* Returns: the signal name, or %NULL if the signal number was invalid.
*/
G_CONST_RETURN gchar*
const gchar *
g_signal_name (guint signal_id)
{
SignalNode *node;

View File

@@ -308,7 +308,7 @@ void g_signal_emit_by_name (gpointer instance,
...);
guint g_signal_lookup (const gchar *name,
GType itype);
G_CONST_RETURN gchar* g_signal_name (guint signal_id);
const gchar * g_signal_name (guint signal_id);
void g_signal_query (guint signal_id,
GSignalQuery *query);
guint* g_signal_list_ids (GType itype,

View File

@@ -3275,7 +3275,7 @@ g_type_default_interface_unref (gpointer g_iface)
*
* Returns: Static type name or %NULL.
*/
G_CONST_RETURN gchar*
const gchar *
g_type_name (GType type)
{
TypeNode *node;
@@ -4197,7 +4197,7 @@ g_type_value_table_peek (GType type)
return NULL;
}
G_CONST_RETURN gchar*
const gchar *
g_type_name_from_instance (GTypeInstance *instance)
{
if (!instance)
@@ -4206,7 +4206,7 @@ g_type_name_from_instance (GTypeInstance *instance)
return g_type_name_from_class (instance->g_class);
}
G_CONST_RETURN gchar*
const gchar *
g_type_name_from_class (GTypeClass *g_class)
{
if (!g_class)

View File

@@ -666,7 +666,7 @@ typedef enum /*< skip >*/
/* --- prototypes --- */
void g_type_init (void);
void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags);
G_CONST_RETURN gchar* g_type_name (GType type);
const gchar * g_type_name (GType type);
GQuark g_type_qname (GType type);
GType g_type_from_name (const gchar *name);
GType g_type_parent (GType type);
@@ -1657,8 +1657,8 @@ gboolean g_type_test_flags (GType type,
/* --- debugging functions --- */
G_CONST_RETURN gchar* g_type_name_from_instance (GTypeInstance *instance);
G_CONST_RETURN gchar* g_type_name_from_class (GTypeClass *g_class);
const gchar * g_type_name_from_instance (GTypeInstance *instance);
const gchar * g_type_name_from_class (GTypeClass *g_class);
/* --- implementation bits --- */

View File

@@ -214,7 +214,7 @@ void g_value_set_string (GValue *value,
const gchar *v_string);
void g_value_set_static_string (GValue *value,
const gchar *v_string);
G_CONST_RETURN gchar* g_value_get_string (const GValue *value);
const gchar * g_value_get_string (const GValue *value);
gchar* g_value_dup_string (const GValue *value);
void g_value_set_pointer (GValue *value,
gpointer v_pointer);