Skip to content

Commit 65539ef

Browse files
committed
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
1 parent 79d358f commit 65539ef

File tree

617 files changed

+2504
-2504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

617 files changed

+2504
-2504
lines changed

accessible/src/atk/AccessibleWrap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ ConvertToAtkAttributeSet(nsIPersistentProperties* aAttributes)
724724
nsCOMPtr<nsIPropertyElement> propElem(do_QueryInterface(sup));
725725
NS_ENSURE_TRUE(propElem, objAttributeSet);
726726

727-
nsCAutoString name;
727+
nsAutoCString name;
728728
rv = propElem->GetKey(name);
729729
NS_ENSURE_SUCCESS(rv, objAttributeSet);
730730

accessible/src/atk/ApplicationAccessibleWrap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ LoadGtkModule(GnomeAccessibilityModule& aModule)
786786

787787
//try to load the module with "gtk-2.0/modules" appended
788788
char *curLibPath = PR_GetLibraryPath();
789-
nsCAutoString libPath(curLibPath);
789+
nsAutoCString libPath(curLibPath);
790790
#if defined(LINUX) && defined(__x86_64__)
791791
libPath.Append(":/usr/lib64:/usr/lib");
792792
#else
@@ -803,7 +803,7 @@ LoadGtkModule(GnomeAccessibilityModule& aModule)
803803
subLen = libPath.Length() - loc1;
804804
else
805805
subLen = loc2 - loc1;
806-
nsCAutoString sub(Substring(libPath, loc1, subLen));
806+
nsAutoCString sub(Substring(libPath, loc1, subLen));
807807
sub.Append("/gtk-2.0/modules/");
808808
sub.Append(aModule.libName);
809809
aModule.lib = PR_LoadLibrary(sub.get());

accessible/src/atk/nsMaiHyperlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ getUriCB(AtkHyperlink *aLink, gint aLinkIndex)
186186
if (!uri)
187187
return nullptr;
188188

189-
nsCAutoString cautoStr;
189+
nsAutoCString cautoStr;
190190
nsresult rv = uri->GetSpec(cautoStr);
191191
NS_ENSURE_SUCCESS(rv, nullptr);
192192

accessible/src/base/FocusManager.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@ class FocusManager
156156
if (aNode) { \
157157
if (aNode->IsElement()) { \
158158
dom::Element* targetElm = aNode->AsElement(); \
159-
nsCAutoString tag; \
159+
nsAutoCString tag; \
160160
targetElm->Tag()->ToUTF8String(tag); \
161-
nsCAutoString id; \
161+
nsAutoCString id; \
162162
nsIAtom* atomid = targetElm->GetID(); \
163163
if (atomid) \
164164
atomid->ToUTF8String(id); \
165165
printf("element %s@id='%s': %p", tag.get(), id.get(), (void*)aNode); \
166166
} else if (aNode->IsNodeOfType(nsINode::eDOCUMENT)) { \
167167
nsCOMPtr<nsIDocument> document = do_QueryInterface(aNode); \
168168
nsIURI* uri = document->GetDocumentURI(); \
169-
nsCAutoString spec; \
169+
nsAutoCString spec; \
170170
uri->GetSpec(spec); \
171171
printf("document: %p; uri: %s", (void*)aNode, spec.get()); \
172172
} \

accessible/src/base/Logging.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void
8080
LogDocURI(nsIDocument* aDocumentNode)
8181
{
8282
nsIURI* uri = aDocumentNode->GetDocumentURI();
83-
nsCAutoString spec;
83+
nsAutoCString spec;
8484
uri->GetSpec(spec);
8585
printf("uri: %s", spec.get());
8686
}
@@ -90,7 +90,7 @@ LogDocShellState(nsIDocument* aDocumentNode)
9090
{
9191
printf("docshell busy: ");
9292

93-
nsCAutoString docShellBusy;
93+
nsAutoCString docShellBusy;
9494
nsCOMPtr<nsISupports> container = aDocumentNode->GetContainer();
9595
if (container) {
9696
nsCOMPtr<nsIDocShell> docShell = do_QueryInterface(container);
@@ -296,7 +296,7 @@ static void
296296
LogRequest(nsIRequest* aRequest)
297297
{
298298
if (aRequest) {
299-
nsCAutoString name;
299+
nsAutoCString name;
300300
aRequest->GetName(name);
301301
printf(" request spec: %s\n", name.get());
302302
uint32_t loadFlags = 0;
@@ -407,7 +407,7 @@ logging::DocLoad(const char* aMsg, nsIDocument* aDocumentNode)
407407
void
408408
logging::DocLoadEventFired(AccEvent* aEvent)
409409
{
410-
nsCAutoString strEventType;
410+
nsAutoCString strEventType;
411411
GetDocLoadEventType(aEvent, strEventType);
412412
if (!strEventType.IsEmpty())
413413
printf(" fire: %s\n", strEventType.get());
@@ -416,7 +416,7 @@ logging::DocLoadEventFired(AccEvent* aEvent)
416416
void
417417
logging::DocLoadEventHandled(AccEvent* aEvent)
418418
{
419-
nsCAutoString strEventType;
419+
nsAutoCString strEventType;
420420
GetDocLoadEventType(aEvent, strEventType);
421421
if (strEventType.IsEmpty())
422422
return;
@@ -574,11 +574,11 @@ logging::Node(const char* aDescr, nsINode* aNode)
574574

575575
dom::Element* elm = aNode->AsElement();
576576

577-
nsCAutoString tag;
577+
nsAutoCString tag;
578578
elm->Tag()->ToUTF8String(tag);
579579

580580
nsIAtom* idAtom = elm->GetID();
581-
nsCAutoString id;
581+
nsAutoCString id;
582582
if (idAtom)
583583
idAtom->ToUTF8String(id);
584584

accessible/src/base/nsAccUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ nsAccUtils::SetAccAttr(nsIPersistentProperties *aAttributes,
4040
nsIAtom *aAttrName, const nsAString& aAttrValue)
4141
{
4242
nsAutoString oldValue;
43-
nsCAutoString attrName;
43+
nsAutoCString attrName;
4444

4545
aAttributes->SetStringProperty(nsAtomCString(aAttrName), aAttrValue, oldValue);
4646
}

accessible/src/base/nsCoreUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ nsCoreUtils::IsErrorPage(nsIDocument *aDocument)
475475
if (!isAboutScheme)
476476
return false;
477477

478-
nsCAutoString path;
478+
nsAutoCString path;
479479
uri->GetPath(path);
480480

481481
NS_NAMED_LITERAL_CSTRING(neterror, "neterror");

accessible/src/generic/ApplicationAccessible.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ ApplicationAccessible::GetAppName(nsAString& aName)
218218
if (!mAppInfo)
219219
return NS_ERROR_FAILURE;
220220

221-
nsCAutoString cname;
221+
nsAutoCString cname;
222222
nsresult rv = mAppInfo->GetName(cname);
223223
NS_ENSURE_SUCCESS(rv, rv);
224224

@@ -234,7 +234,7 @@ ApplicationAccessible::GetAppVersion(nsAString& aVersion)
234234
if (!mAppInfo)
235235
return NS_ERROR_FAILURE;
236236

237-
nsCAutoString cversion;
237+
nsAutoCString cversion;
238238
nsresult rv = mAppInfo->GetVersion(cversion);
239239
NS_ENSURE_SUCCESS(rv, rv);
240240

@@ -257,7 +257,7 @@ ApplicationAccessible::GetPlatformVersion(nsAString& aVersion)
257257
if (!mAppInfo)
258258
return NS_ERROR_FAILURE;
259259

260-
nsCAutoString cversion;
260+
nsAutoCString cversion;
261261
nsresult rv = mAppInfo->GetPlatformVersion(cversion);
262262
NS_ENSURE_SUCCESS(rv, rv);
263263

accessible/src/generic/DocAccessible.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ DocAccessible::GetURL(nsAString& aURL)
386386

387387
nsCOMPtr<nsISupports> container = mDocument->GetContainer();
388388
nsCOMPtr<nsIWebNavigation> webNav(do_GetInterface(container));
389-
nsCAutoString theURL;
389+
nsAutoCString theURL;
390390
if (webNav) {
391391
nsCOMPtr<nsIURI> pURI;
392392
webNav->GetCurrentURI(getter_AddRefs(pURI));

accessible/src/generic/ImageAccessible.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ ImageAccessible::DoAction(uint8_t aIndex)
136136
if (!uri)
137137
return NS_ERROR_INVALID_ARG;
138138

139-
nsCAutoString utf8spec;
139+
nsAutoCString utf8spec;
140140
uri->GetSpec(utf8spec);
141141
NS_ConvertUTF8toUTF16 spec(utf8spec);
142142

0 commit comments

Comments
 (0)