From 90f6c74c0af5d6ee334bef55c139bcc0744cd715 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Mon, 19 Oct 2015 13:16:11 +1000 Subject: [PATCH] Fix incorrect check. --- include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index af08cac..0c3412d 100644 --- a/include/common.h +++ b/include/common.h @@ -59,7 +59,7 @@ class OBType OBType() = delete; OBType(OBType&&) = delete; OBType(OBType&) = delete; - OBType(const ObjectBase* arg):iszero(0==p) {if(0==arg) p=0; else if(typeid(*arg)==typeid(O)) p=dynamic_cast(arg); else p=0;} + OBType(const ObjectBase* arg):iszero(0==arg) {if(0==arg) p=0; else if(typeid(*arg)==typeid(O)) p=dynamic_cast(arg); else p=0;} const O* operator->() const {return p;} operator bool() const {return 0!=p;} operator const O*() const {return p;}