diff --git a/embedding/browser/gtk/src/EmbedPrivate.cpp b/embedding/browser/gtk/src/EmbedPrivate.cpp index e8e626ba664..2b1a8dc3ea8 100644 --- a/embedding/browser/gtk/src/EmbedPrivate.cpp +++ b/embedding/browser/gtk/src/EmbedPrivate.cpp @@ -486,7 +486,7 @@ EmbedPrivate::PopStartup(void) /* static */ void -EmbedPrivate::SetCompPath(char *aPath) +EmbedPrivate::SetCompPath(const char *aPath) { if (sCompPath) free(sCompPath); @@ -507,7 +507,7 @@ EmbedPrivate::SetAppComponents(const nsModuleComponentInfo* aComps, /* static */ void -EmbedPrivate::SetProfilePath(char *aDir, char *aName) +EmbedPrivate::SetProfilePath(const char *aDir, const char *aName) { if (sProfileDir) { nsMemory::Free(sProfileDir); diff --git a/embedding/browser/gtk/src/EmbedPrivate.h b/embedding/browser/gtk/src/EmbedPrivate.h index 3b97dd27c57..bfb8d68db0b 100644 --- a/embedding/browser/gtk/src/EmbedPrivate.h +++ b/embedding/browser/gtk/src/EmbedPrivate.h @@ -85,10 +85,10 @@ class EmbedPrivate { static void PushStartup (void); static void PopStartup (void); - static void SetCompPath (char *aPath); + static void SetCompPath (const char *aPath); static void SetAppComponents (const nsModuleComponentInfo* aComps, int aNumComponents); - static void SetProfilePath (char *aDir, char *aName); + static void SetProfilePath (const char *aDir, const char *aName); static void SetDirectoryServiceProvider (nsIDirectoryServiceProvider * appFileLocProvider); nsresult OpenStream (const char *aBaseURI, const char *aContentType); diff --git a/embedding/browser/gtk/src/gtkmozembed.h b/embedding/browser/gtk/src/gtkmozembed.h index 7a4087d0796..7d7568f2917 100644 --- a/embedding/browser/gtk/src/gtkmozembed.h +++ b/embedding/browser/gtk/src/gtkmozembed.h @@ -103,8 +103,9 @@ GtkType gtk_moz_embed_get_type (void); GtkWidget *gtk_moz_embed_new (void); void gtk_moz_embed_push_startup (void); void gtk_moz_embed_pop_startup (void); -void gtk_moz_embed_set_comp_path (char *aPath); -void gtk_moz_embed_set_profile_path (char *aDir, char *aName); +void gtk_moz_embed_set_comp_path (const char *aPath); +void gtk_moz_embed_set_profile_path (const char *aDir, + const char *aName); void gtk_moz_embed_load_url (GtkMozEmbed *embed, const char *url); void gtk_moz_embed_stop_load (GtkMozEmbed *embed); diff --git a/embedding/browser/gtk/src/gtkmozembed2.cpp b/embedding/browser/gtk/src/gtkmozembed2.cpp index b35ca7e57ce..ef76c0538f9 100644 --- a/embedding/browser/gtk/src/gtkmozembed2.cpp +++ b/embedding/browser/gtk/src/gtkmozembed2.cpp @@ -824,7 +824,7 @@ gtk_moz_embed_pop_startup(void) } void -gtk_moz_embed_set_comp_path(char *aPath) +gtk_moz_embed_set_comp_path(const char *aPath) { EmbedPrivate::SetCompPath(aPath); } @@ -837,7 +837,7 @@ gtk_moz_embed_set_app_components(const nsModuleComponentInfo* aComps, } void -gtk_moz_embed_set_profile_path(char *aDir, char *aName) +gtk_moz_embed_set_profile_path(const char *aDir, const char *aName) { EmbedPrivate::SetProfilePath(aDir, aName); }