Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc

git-svn-id: svn://10.0.0.236/trunk@106257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com
2001-10-25 07:45:52 +00:00
parent 8bdd562d78
commit 5835031439
20 changed files with 48 additions and 50 deletions

View File

@@ -31,7 +31,7 @@ nsParserService::nsParserService() : mEntries(0)
nsParserService::~nsParserService()
{
nsObserverEntry *entry = nsnull;
while(entry = NS_STATIC_CAST(nsObserverEntry*,mEntries.Pop())) {
while( (entry = NS_STATIC_CAST(nsObserverEntry*,mEntries.Pop())) ) {
NS_RELEASE(entry);
}
}
@@ -60,7 +60,7 @@ nsParserService::HTMLStringTagToId(const nsString &aTag, PRInt32* aId) const
NS_IMETHODIMP
nsParserService::HTMLIdToStringTag(PRInt32 aId, nsString& aTag) const
{
aTag.AssignWithConversion( nsHTMLTags::GetStringValue((nsHTMLTag)aId) );
aTag.AssignWithConversion( nsHTMLTags::GetStringValue((nsHTMLTag)aId).get() );
return NS_OK;
}