mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
fixing code that relied on implicit string construction
This commit is contained in:
parent
93f626595d
commit
20b8f119b0
@ -276,10 +276,12 @@ NS_IMETHODIMP nsMetaCharsetObserver::Notify(
|
||||
nsAutoString newCharset;
|
||||
NS_ASSERTION(end>=start, "wrong index");
|
||||
contentPart1.Mid(newCharset, start, end - start);
|
||||
if(! newCharset.EqualsIgnoreCase(charset))
|
||||
|
||||
nsAutoString charsetString(charset);
|
||||
if(! newCharset.EqualsIgnoreCase(charsetString))
|
||||
{
|
||||
PRBool same = PR_FALSE;
|
||||
res = mAlias->Equals( newCharset, charset , &same);
|
||||
res = mAlias->Equals( newCharset, charsetString , &same);
|
||||
if(NS_SUCCEEDED(res) && (! same))
|
||||
{
|
||||
nsAutoString preferred;
|
||||
|
Loading…
x
Reference in New Issue
Block a user