Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052

git-svn-id: svn://10.0.0.236/trunk@107583 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-11-07 06:24:10 +00:00
parent c981ebf61c
commit 13b5500ba3
113 changed files with 341 additions and 338 deletions

View File

@@ -232,7 +232,7 @@ enum {
VIEW_SOURCE_MARKUPDECLARATION = 12
};
static char* kElementClasses[] = {
static const char* const kElementClasses[] = {
"start-tag",
"end-tag",
"comment",
@@ -248,7 +248,7 @@ static char* kElementClasses[] = {
"markupdeclaration"
};
static char* kBeforeText[] = {
static const char* const kBeforeText[] = {
"<",
"</",
"",
@@ -264,7 +264,7 @@ static char* kBeforeText[] = {
""
};
static char* kAfterText[] = {
static const char* const kAfterText[] = {
">",
">",
"",
@@ -281,7 +281,7 @@ static char* kAfterText[] = {
};
#ifdef DUMP_TO_FILE
static char* kDumpFileBeforeText[] = {
static const char* const kDumpFileBeforeText[] = {
"&lt;",
"&lt;/",
"",
@@ -297,7 +297,7 @@ static char* kDumpFileBeforeText[] = {
""
};
static char* kDumpFileAfterText[] = {
static const char* const kDumpFileAfterText[] = {
"&gt;",
"&gt;",
"",