add const on gchar to avoid freeing out of object lifecycle

parent f548b38e
......@@ -375,7 +375,7 @@ cloud_providers_account_init (CloudProvidersAccount *self)
*
* Returns: The name of the cloud provider account
*/
gchar*
const gchar*
cloud_providers_account_get_name (CloudProvidersAccount *self)
{
return self->name;
......@@ -403,7 +403,7 @@ cloud_providers_account_get_status (CloudProvidersAccount *self)
*
* Returns: The status detail description of the cloud provider account
*/
gchar*
const gchar*
cloud_providers_account_get_status_details (CloudProvidersAccount *self)
{
return self->status_details;
......@@ -460,7 +460,7 @@ cloud_providers_account_get_action_group (CloudProvidersAccount *self)
*
* Returns: The directory path of the cloud provider account
*/
gchar *
const gchar *
cloud_providers_account_get_path (CloudProvidersAccount *self)
{
return self->path;
......
......@@ -52,13 +52,13 @@ struct _CloudProvidersAccountClass
CloudProvidersAccount *cloud_providers_account_new (GDBusProxy *proxy);
gchar* cloud_providers_account_get_name (CloudProvidersAccount *self);
const gchar* cloud_providers_account_get_name (CloudProvidersAccount *self);
CloudProvidersAccountStatus cloud_providers_account_get_status (CloudProvidersAccount *self);
gchar* cloud_providers_account_get_status_details (CloudProvidersAccount *self);
const gchar* cloud_providers_account_get_status_details (CloudProvidersAccount *self);
GIcon *cloud_providers_account_get_icon (CloudProvidersAccount *self);
GMenuModel *cloud_providers_account_get_menu_model (CloudProvidersAccount *self);
GActionGroup* cloud_providers_account_get_action_group (CloudProvidersAccount *self);
gchar *cloud_providers_account_get_path (CloudProvidersAccount *self);
const gchar *cloud_providers_account_get_path (CloudProvidersAccount *self);
G_END_DECLS
......
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