aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-application.c
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/ephy-application.c
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/ephy-application.c')
-rw-r--r--src/ephy-application.c6
1 files changed, 3 insertions, 3 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);
}
}