From: <ag...@us...> - 2012-01-19 22:37:19
|
Revision: 2679 http://zoolib.svn.sourceforge.net/zoolib/?rev=2679&view=rev Author: agreen Date: 2012-01-19 22:37:13 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Use QDo. Modified Paths: -------------- trunk/zoolib/source/cxx/zoolib/ZVisitor_Expr_Op_Do_Transform_T.h Modified: trunk/zoolib/source/cxx/zoolib/ZVisitor_Expr_Op_Do_Transform_T.h =================================================================== --- trunk/zoolib/source/cxx/zoolib/ZVisitor_Expr_Op_Do_Transform_T.h 2012-01-16 20:09:34 UTC (rev 2678) +++ trunk/zoolib/source/cxx/zoolib/ZVisitor_Expr_Op_Do_Transform_T.h 2012-01-19 22:37:13 UTC (rev 2679) @@ -49,16 +49,18 @@ // From ZVisitor_Expr_Op1_T virtual void Visit_Expr_Op1(const ZRef<ZExpr_Op1_T<T> >& iExpr) { - ZRef<T> newOp0 = this->Do(iExpr->GetOp0()); - this->pSetResult(iExpr->SelfOrClone(newOp0)); + if (ZQ<ZRef<T> > theQ0 = this->QDo(iExpr->GetOp0())) + this->pSetResult(iExpr->SelfOrClone(*theQ0)); } // From ZVisitor_Expr_Op2_T virtual void Visit_Expr_Op2(const ZRef<ZExpr_Op2_T<T> >& iExpr) { - ZRef<T> newOp0 = this->Do(iExpr->GetOp0()); - ZRef<T> newOp1 = this->Do(iExpr->GetOp1()); - this->pSetResult(iExpr->SelfOrClone(newOp0, newOp1)); + if (ZQ<ZRef<T> > theQ0 = this->QDo(iExpr->GetOp0())) + { + if (ZQ<ZRef<T> > theQ1 = this->QDo(iExpr->GetOp1())) + this->pSetResult(iExpr->SelfOrClone(*theQ0, *theQ1)); + } } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |