Bug 624743 - Resource protocol shouldn't use nsDependentCString. r=bsmedberg
authorEdgar Flores <edgarf2002@gmail.com>
Thu, 11 Aug 2011 21:43:00 -0400
changeset 75315 2c026a7ff7304916b818b167a0f88bde9f596529
parent 75296 22af0a57b683f4be8a8f128107bb5ccb33db36f4
child 75316 2c01344b6929a10e9061b49d47ea67e5ceaac74c
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersbsmedberg
bugs624743
milestone8.0a1
Bug 624743 - Resource protocol shouldn't use nsDependentCString. r=bsmedberg
netwerk/protocol/res/nsResProtocolHandler.cpp
--- a/netwerk/protocol/res/nsResProtocolHandler.cpp
+++ b/netwerk/protocol/res/nsResProtocolHandler.cpp
@@ -216,17 +216,17 @@ EnumerateSubstitution(const nsACString& 
             static_cast<nsTArray<ResourceMapping>*>(aArg);
     SerializedURI uri;
     if (aURI) {
         aURI->GetSpec(uri.spec);
         aURI->GetOriginCharset(uri.charset);
     }
 
     ResourceMapping resource = {
-        nsDependentCString(aKey), uri
+        nsCString(aKey), uri
     };
     resources->AppendElement(resource);
     return (PLDHashOperator)PL_DHASH_NEXT;
 }
 
 void
 nsResProtocolHandler::CollectSubstitutions(InfallibleTArray<ResourceMapping>& aResources)
 {