From 4a3b5248d2d1d01a25d9bf00c1b09d6e3e808782 Mon Sep 17 00:00:00 2001 From: "kvisco%ziplink.net" Date: Thu, 17 Feb 2000 07:58:10 +0000 Subject: [PATCH] Did some minor clean-up of code git-svn-id: svn://10.0.0.236/trunk@61192 18797224-902f-48f8-a5cc-f745e15eee43 --- .../transformiix/source/xsl/expr/LocationStep.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/extensions/transformiix/source/xsl/expr/LocationStep.cpp b/mozilla/extensions/transformiix/source/xsl/expr/LocationStep.cpp index f1135e751a3..2389fc9a599 100644 --- a/mozilla/extensions/transformiix/source/xsl/expr/LocationStep.cpp +++ b/mozilla/extensions/transformiix/source/xsl/expr/LocationStep.cpp @@ -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 Keith Visco - * @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