[galeon] Use const char* for string literals.
- From: Fabio Bonelli <fabiob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [galeon] Use const char* for string literals.
- Date: Sun, 2 May 2010 15:31:48 +0000 (UTC)
commit 00a1b76848f4d5c5f157c760cd8f78be3f4dee1b
Author: Fabio Bonelli <fabiob src gnome org>
Date: Sat May 1 22:11:15 2010 +0200
Use const char* for string literals.
mozilla/mozilla-notifiers.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/mozilla/mozilla-notifiers.cpp b/mozilla/mozilla-notifiers.cpp
index f22d2ff..a9012b7 100644
--- a/mozilla/mozilla-notifiers.cpp
+++ b/mozilla/mozilla-notifiers.cpp
@@ -131,7 +131,7 @@ enum
static const struct
{
- char *gconf_key;
+ const char *gconf_key;
guint pref_type;
const char *mozilla_key;
}
@@ -369,7 +369,7 @@ mozilla_notifiers_init(MozillaEmbedShell *shell)
for (i = 0; i < num_font_languages; i++)
{
int k;
- char *types [] = { "serif", "sans-serif", "cursive", "fantasy", "monospace" };
+ const char *types [] = { "serif", "sans-serif", "cursive", "fantasy", "monospace" };
char key[255];
char *info;
const char* language = font_languages[i].key;
@@ -605,7 +605,7 @@ mozilla_language_notifier(GConfClient *client,
g_slist_free(language_list);
}
-static char *autodetect_charset_prefs[] =
+static const char *autodetect_charset_prefs[] =
{
"",
"zh_parallel_state_machine",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]