зеркало из https://github.com/mozilla/gecko-dev.git
Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=peterv sr=brendan@mozilla.org
This commit is contained in:
Родитель
56f14af751
Коммит
934f14f8db
|
@ -283,9 +283,9 @@ void txListIterator::addBefore(void* objPtr) {
|
|||
MBool txListIterator::hasNext() {
|
||||
MBool hasNext = MB_FALSE;
|
||||
if (currentItem)
|
||||
hasNext = (MBool) currentItem->nextItem;
|
||||
hasNext = (currentItem->nextItem != 0);
|
||||
else if (!atEndOfList)
|
||||
hasNext = (MBool) list->firstItem;
|
||||
hasNext = (list->firstItem != 0);
|
||||
|
||||
return hasNext;
|
||||
} //-- hasNext
|
||||
|
@ -298,9 +298,9 @@ MBool txListIterator::hasNext() {
|
|||
MBool txListIterator::hasPrevious() {
|
||||
MBool hasPrevious = MB_FALSE;
|
||||
if (currentItem)
|
||||
hasPrevious = (MBool) currentItem->prevItem;
|
||||
hasPrevious = (currentItem->prevItem != 0);
|
||||
else if (atEndOfList)
|
||||
hasPrevious = (MBool) list->lastItem;
|
||||
hasPrevious = (list->lastItem != 0);
|
||||
|
||||
return hasPrevious;
|
||||
} //-- hasPrevious
|
||||
|
|
|
@ -168,7 +168,7 @@ ExprLexer::~ExprLexer()
|
|||
|
||||
MBool ExprLexer::hasMoreTokens()
|
||||
{
|
||||
return (MBool)currentItem;
|
||||
return (currentItem != 0);
|
||||
} //-- hasMoreTokens
|
||||
|
||||
Token* ExprLexer::nextToken()
|
||||
|
|
Загрузка…
Ссылка в новой задаче