Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg

This commit is contained in:
Randell Jesup
2012-09-01 22:35:17 -04:00
parent 360ad91182
commit 3b4961b603
617 changed files with 2504 additions and 2504 deletions

View File

@@ -1623,7 +1623,7 @@ nsImageFrame::HandleEvent(nsPresContext* aPresContext,
// mouse is over the border.
if (p.x < 0) p.x = 0;
if (p.y < 0) p.y = 0;
nsCAutoString spec;
nsAutoCString spec;
uri->GetSpec(spec);
spec += nsPrintfCString("?%d,%d", p.x, p.y);
uri->SetSpec(spec);
@@ -1734,7 +1734,7 @@ nsImageFrame::List(FILE* out, int32_t aIndent) const
if (currentRequest) {
nsCOMPtr<nsIURI> uri;
currentRequest->GetURI(getter_AddRefs(uri));
nsCAutoString uristr;
nsAutoCString uristr;
uri->GetAsciiSpec(uristr);
fprintf(out, " [src=%s]", uristr.get());
}
@@ -1829,7 +1829,7 @@ nsImageFrame::SpecToURI(const nsAString& aSpec, nsIIOService *aIOService,
if (mContent) {
baseURI = mContent->GetBaseURI();
}
nsCAutoString charset;
nsAutoCString charset;
GetDocumentCharacterSet(charset);
NS_NewURI(aURI, aSpec,
charset.IsEmpty() ? nullptr : charset.get(),