Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan

This commit is contained in:
Birunthan Mohanathas
2014-05-22 06:48:51 +03:00
parent 7c5f901fae
commit cc3389eabe
23 changed files with 51 additions and 51 deletions

View File

@@ -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()));
}