mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Did some minor clean-up of code
This commit is contained in:
parent
b3db0d2e86
commit
b792e5c161
@ -21,13 +21,13 @@
|
||||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: LocationStep.cpp,v 1.2 1999/11/15 07:13:12 nisheeth%netscape.com Exp $
|
||||
* $Id: LocationStep.cpp,v 1.3 2000/02/17 07:58:10 kvisco%ziplink.net Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* LocationStep
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.2 $ $Date: 1999/11/15 07:13:12 $
|
||||
* @version $Revision: 1.3 $ $Date: 2000/02/17 07:58:10 $
|
||||
**/
|
||||
|
||||
#include "Expr.h"
|
||||
@ -226,7 +226,7 @@ double LocationStep::getDefaultPriority(Node* node, Node* context, ContextState*
|
||||
if ( !nodeExpr ) {
|
||||
return Double::NEGATIVE_INFINITY;
|
||||
}
|
||||
if (!PredicateList::isEmpty()) {
|
||||
if (!this->isEmpty()) {
|
||||
return 0.5;
|
||||
}
|
||||
return nodeExpr->getDefaultPriority(node, context, cs);
|
||||
@ -262,8 +262,8 @@ MBool LocationStep::matches(Node* node, Node* context, ContextState* cs) {
|
||||
NodeSet nodes;
|
||||
nodes.add(node);
|
||||
evaluatePredicates(&nodes, cs);
|
||||
if (nodes.size() > 0) return MB_TRUE;
|
||||
return MB_FALSE;
|
||||
|
||||
return (MBool)(nodes.size() > 0);
|
||||
|
||||
} //-- matches
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user