aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-06-26 00:54:10 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-06-27 21:29:46 +0800
commit016b6995843919814f3768487ca161031d778d06 (patch)
treedb7c3cd70bca6818c655279f4499dfc81e710089 /src
parent74d64e0199c769bb91caa04e127fb3b0c0a639fb (diff)
downloadgsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar.gz
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar.bz2
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar.lz
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar.xz
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.tar.zst
gsoc2013-epiphany-016b6995843919814f3768487ca161031d778d06.zip
Mark string parameters in ephy_session_queue_command() as const
ephy_session_queue_command() doesn't take over the strings it receives, so mark these as const for clarity. https://bugzilla.gnome.org/show_bug.cgi?id=622903
Diffstat (limited to 'src')
-rw-r--r--src/ephy-application.c6
-rw-r--r--src/ephy-session.c2
-rw-r--r--src/ephy-session.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ephy-application.c b/src/ephy-application.c
index ecf4d44ca..8ae9f7f77 100644
--- a/src/ephy-application.c
+++ b/src/ephy-application.c
@@ -121,7 +121,7 @@ queue_commands (EphyApplication *application)
else if (ctx->session_filename != NULL) {
ephy_session_queue_command (session,
EPHY_SESSION_CMD_LOAD_SESSION,
- ctx->session_filename, NULL,
+ (const char *)ctx->session_filename, NULL,
ctx->user_time, FALSE);
} else if (ctx->arguments != NULL) {
/* Don't queue any window openings if no extra arguments given, */
@@ -139,8 +139,8 @@ queue_commands (EphyApplication *application)
ephy_session_queue_command (session,
EPHY_SESSION_CMD_OPEN_URIS,
- options->str,
- ctx->arguments,
+ (const char*)options->str,
+ (const char **)ctx->arguments,
ctx->user_time, FALSE);
}
}
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 9e489d07b..0c7b2a978 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1744,7 +1744,7 @@ void
ephy_session_queue_command (EphySession *session,
EphySessionCommand command,
const char *arg,
- char **args,
+ const char **args,
guint32 user_time,
gboolean priority)
{
diff --git a/src/ephy-session.h b/src/ephy-session.h
index 4dbb496c5..3bf1ffd9a 100644
--- a/src/ephy-session.h
+++ b/src/ephy-session.h
@@ -92,7 +92,7 @@ void ephy_session_remove_window (EphySession *session,
void ephy_session_queue_command (EphySession *session,
EphySessionCommand op,
const char *arg,
- char **args,
+ const char **args,
guint32 user_time,
gboolean priority);