From 106fbe1612c4c751c7ac8d5a6a6ac669f689ee56 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Tue, 8 Sep 2015 15:03:43 +1000 Subject: [PATCH] Fixes --- src/object.cpp | 2 +- src/object.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/object.cpp b/src/object.cpp index a21186e..754dc75 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -30,6 +30,6 @@ inline ObjectBase* OFunc::Evaluate(bool* err) if(ret!=0) return ret; } *err=true; - COUT(ERROR)<<"Function(s) "<Dump()<Dump()<Type()<size();} + bool Exist() const {return 0!=vals->size();} bool Print() const override { @@ -268,9 +268,9 @@ public: for(auto& i: *vals) { p=0; - if(IS_OTYPEI(i,ObjectPair)) p=dynamic_cast(i)->Get(gname); + if(IS_OTYPE(i,ObjectPair)) p=dynamic_cast(i)->Get(gname); if(0!=p) return p; - if(IS_OTYPEI(i,ObjectList)) p=dynamic_cast(i)->Get(gname); + if(IS_OTYPE(i,ObjectList)) p=dynamic_cast(i)->Get(gname); if(0!=p) return p; } return 0;