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

@@ -603,7 +603,7 @@ NS_ScriptErrorReporter(JSContext *cx,
// Print it to stderr as well, for the benefit of those invoking
// mozilla with -console.
nsAutoCString error;
error.Assign("JavaScript ");
error.AssignLiteral("JavaScript ");
if (JSREPORT_IS_STRICT(report->flags))
error.Append("strict ");
if (JSREPORT_IS_WARNING(report->flags))