fix pedantic build bustage. (thanks to kin for the fix)
git-svn-id: svn://10.0.0.236/trunk@31273 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
478843414a
commit
223e501705
@ -3677,7 +3677,7 @@ nsTextServicesDocument::GetUncollapsedSelection(nsITextServicesDocument::TSDBloc
|
||||
|
||||
if (!found)
|
||||
{
|
||||
if (entry->mNode == p1 &&
|
||||
if (entry->mNode == p1.get() &&
|
||||
entry->mNodeOffset <= o1 && o1 <= (entry->mNodeOffset + entry->mLength))
|
||||
{
|
||||
*aSelOffset = entry->mStrOffset + (o1 - entry->mNodeOffset);
|
||||
@ -3704,7 +3704,7 @@ nsTextServicesDocument::GetUncollapsedSelection(nsITextServicesDocument::TSDBloc
|
||||
}
|
||||
else // found
|
||||
{
|
||||
if (entry->mNode == p2 &&
|
||||
if (entry->mNode == p2.get() &&
|
||||
entry->mNodeOffset <= o2 && o2 <= (entry->mNodeOffset + entry->mLength))
|
||||
{
|
||||
// We found the end of the range. Calculate the length of the
|
||||
|
||||
@ -3677,7 +3677,7 @@ nsTextServicesDocument::GetUncollapsedSelection(nsITextServicesDocument::TSDBloc
|
||||
|
||||
if (!found)
|
||||
{
|
||||
if (entry->mNode == p1 &&
|
||||
if (entry->mNode == p1.get() &&
|
||||
entry->mNodeOffset <= o1 && o1 <= (entry->mNodeOffset + entry->mLength))
|
||||
{
|
||||
*aSelOffset = entry->mStrOffset + (o1 - entry->mNodeOffset);
|
||||
@ -3704,7 +3704,7 @@ nsTextServicesDocument::GetUncollapsedSelection(nsITextServicesDocument::TSDBloc
|
||||
}
|
||||
else // found
|
||||
{
|
||||
if (entry->mNode == p2 &&
|
||||
if (entry->mNode == p2.get() &&
|
||||
entry->mNodeOffset <= o2 && o2 <= (entry->mNodeOffset + entry->mLength))
|
||||
{
|
||||
// We found the end of the range. Calculate the length of the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user