landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2794,7 +2794,7 @@ nsScriptSecurityManager::InitPolicies()
|
||||
policyNames += NS_LITERAL_CSTRING(" ") + defaultPolicyNames;
|
||||
|
||||
//-- Initialize domain policies
|
||||
char* policyCurrent = (char*)policyNames.get();
|
||||
char* policyCurrent = policyNames.BeginWriting();
|
||||
PRBool morePolicies = PR_TRUE;
|
||||
while (morePolicies)
|
||||
{
|
||||
@@ -2832,7 +2832,7 @@ nsScriptSecurityManager::InitPolicies()
|
||||
}
|
||||
|
||||
//-- Parse list of sites and create an entry in mOriginToPolicyMap for each
|
||||
char* domainStart = (char*)domainList.get();
|
||||
char* domainStart = domainList.BeginWriting();
|
||||
char* domainCurrent = domainStart;
|
||||
char* lastDot = nsnull;
|
||||
char* nextToLastDot = nsnull;
|
||||
|
||||
Reference in New Issue
Block a user