mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
making string conversions explicit
This commit is contained in:
parent
6a250f560d
commit
4653555152
@ -705,7 +705,7 @@ NS_IMETHODIMP nsDocShell::FindItemWithName(const PRUnichar *aName,
|
||||
nsCOMPtr<nsIDocShellTreeItem> reqAsTreeItem(do_QueryInterface(aRequestor));
|
||||
|
||||
// First we check our name.
|
||||
if(mName.Equals(aName))
|
||||
if(mName.EqualsWithConversion(aName))
|
||||
{
|
||||
*_retval = NS_STATIC_CAST(nsIDocShellTreeItem*, this);
|
||||
NS_ADDREF(*_retval);
|
||||
@ -902,7 +902,7 @@ NS_IMETHODIMP nsDocShell::FindChildWithName(const PRUnichar *aName,
|
||||
continue;
|
||||
|
||||
child->GetName(getter_Copies(childName));
|
||||
if(name.Equals(childName))
|
||||
if(name.EqualsWithConversion(childName))
|
||||
{
|
||||
*_retval = child;
|
||||
NS_ADDREF(*_retval);
|
||||
|
Loading…
Reference in New Issue
Block a user