Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan

This commit is contained in:
Birunthan Mohanathas
2014-05-22 06:48:51 +03:00
parent 9c531b5b34
commit fd86bf4972
47 changed files with 156 additions and 152 deletions

View File

@@ -135,7 +135,7 @@ canonicalizeBase(nsAutoCString &spec,
if (underGre && underApp && greBase.Length() < appBase.Length())
underGre = false;
out.Append("/resource/");
out.AppendLiteral("/resource/");
out.Append(baseName[underGre ? mozilla::Omnijar::GRE : mozilla::Omnijar::APP]);
out.Append(Substring(spec, underGre ? greBase.Length() : appBase.Length()));
return true;