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:
@@ -289,7 +289,7 @@ NS_IMETHODIMP
|
||||
nsLocalFile::CreateAllAncestors(PRUint32 permissions)
|
||||
{
|
||||
// <jband> I promise to play nice
|
||||
char *buffer = NS_CONST_CAST(char *, mPath.get()),
|
||||
char *buffer = mPath.BeginWriting(),
|
||||
*slashp = buffer;
|
||||
|
||||
#ifdef DEBUG_NSIFILE
|
||||
@@ -1169,7 +1169,7 @@ nsLocalFile::GetParent(nsIFile **aParent)
|
||||
return NS_OK;
|
||||
|
||||
// <brendan, after jband> I promise to play nice
|
||||
char *buffer = NS_CONST_CAST(char *, mPath.get()),
|
||||
char *buffer = mPath.BeginWriting(),
|
||||
*slashp = buffer;
|
||||
|
||||
// find the last significant slash in buffer
|
||||
|
||||
Reference in New Issue
Block a user