aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-07-08 18:56:13 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-08-05 22:55:12 +0800
commita3faa867baeb51bb55e04fb507aaa45038f760a5 (patch)
tree3f548604cd6a9bb43838a433348fc1ad185d7827 /src
parentf8c37da731af9f6cd74e7a0ef08fa02059d981ac (diff)
downloadgsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar.gz
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar.bz2
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar.lz
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar.xz
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.tar.zst
gsoc2013-empathy-a3faa867baeb51bb55e04fb507aaa45038f760a5.zip
Fix constness of various variables and parameters
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c6
-rw-r--r--src/empathy-call-window.c2
-rw-r--r--src/empathy-import-pidgin.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index e7977894c..c41763d90 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -472,7 +472,7 @@ account_dialog_create_settings_widget (EmpathyAccountsDialog *dialog,
EmpathyAccountSettings *settings)
{
EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog);
- gchar *icon_name;
+ const gchar *icon_name;
TpAccount *account;
priv->setting_widget_object =
@@ -2299,7 +2299,7 @@ empathy_accounts_dialog_show_application (GdkScreen *screen,
gboolean hidden)
{
GError *error = NULL;
- gchar *argv[4] = { NULL, };
+ const gchar *argv[4] = { NULL, };
gint i = 0;
gchar *account_option = NULL;
gchar *path;
@@ -2341,7 +2341,7 @@ empathy_accounts_dialog_show_application (GdkScreen *screen,
selected_account == NULL ? "<none selected>" :
tp_proxy_get_object_path (TP_PROXY (selected_account)));
- gdk_spawn_on_screen (screen, NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
+ gdk_spawn_on_screen (screen, NULL, (gchar**) argv, NULL, G_SPAWN_SEARCH_PATH,
NULL, NULL, NULL, &error);
if (error != NULL)
{
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c2416ea03..7376c486b 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -376,7 +376,7 @@ empathy_call_window_create_dtmf (EmpathyCallWindow *self)
int i;
GQuark button_quark;
struct {
- gchar *label;
+ const gchar *label;
TpDTMFEvent event;
} dtmfbuttons[] = { { "1", TP_DTMF_EVENT_DIGIT_1 },
{ "2", TP_DTMF_EVENT_DIGIT_2 },
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 87910b96a..1e9a31713 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -45,9 +45,9 @@
/* Pidgin to CM map */
typedef struct
{
- gchar *protocol;
- gchar *pidgin_name;
- gchar *cm_name;
+ const gchar *protocol;
+ const gchar *pidgin_name;
+ const gchar *cm_name;
} PidginCmMapItem;
static PidginCmMapItem pidgin_cm_map[] =