зеркало из https://github.com/mozilla/pjs.git
Add |const| in a few places where it should be used. b=241164 r=blizzard sr=darin
This commit is contained in:
Родитель
97a5af19d6
Коммит
40122301a3
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче