Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan
This commit is contained in:
@@ -473,7 +473,7 @@ nsGIOInputStream::DoRead(char *aBuf, uint32_t aCount, uint32_t *aCountRead)
|
||||
continue;
|
||||
}
|
||||
|
||||
mDirBuf.Assign("201: ");
|
||||
mDirBuf.AssignLiteral("201: ");
|
||||
|
||||
// The "filename" field
|
||||
nsCString escName;
|
||||
@@ -932,7 +932,7 @@ nsGIOProtocolHandler::InitSupportedProtocolsPref(nsIPrefBranch *prefs)
|
||||
ToLowerCase(mSupportedProtocols);
|
||||
}
|
||||
else
|
||||
mSupportedProtocols.Assign("smb:,sftp:"); // use defaults
|
||||
mSupportedProtocols.AssignLiteral("smb:,sftp:"); // use defaults
|
||||
|
||||
LOG(("gio: supported protocols \"%s\"\n", mSupportedProtocols.get()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user