not part of build, fixing 65987, current() function. Code by kvisco@ziplink.net, r=peterv,me.
git-svn-id: svn://10.0.0.236/trunk@85626 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
/**
|
||||
* Creates a new current function call
|
||||
**/
|
||||
CurrentFunctionCall::CurrentFunctionCall() :
|
||||
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* ps) :
|
||||
FunctionCall(CURRENT_FN)
|
||||
{
|
||||
this->processorState = ps;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -23,7 +24,7 @@ CurrentFunctionCall::CurrentFunctionCall() :
|
||||
ExprResult* CurrentFunctionCall::evaluate(Node* context, ContextState* cs) {
|
||||
|
||||
NodeSet* result = new NodeSet(1);
|
||||
result->add(context);
|
||||
result->add(processorState->getCurrentNode());
|
||||
return result;
|
||||
} //-- evaluate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user