X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fentity.cpp;h=b9c42e3f5df5e08c4cd1525bf0acbae0f0ba1628;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=b963731bf22d411f902d2d59b36c30a6ab4aa200;hpb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;p=architektonas diff --git a/src/base/entity.cpp b/src/base/entity.cpp index b963731..b9c42e3 100644 --- a/src/base/entity.cpp +++ b/src/base/entity.cpp @@ -202,10 +202,10 @@ bool Entity::isParentSelected() { p = p->getParent(); - if (p != NULL && p->isSelected() == true) + if (p && p->isSelected() == true) return true; } - while(p != NULL); + while (p); return false; } @@ -1058,7 +1058,7 @@ std::ostream & operator<<(std::ostream & os, Entity & e) } #endif - // There should be a better way then this... + // There should be a better way than this... switch (e.rtti()) { case RS2::EntityPoint: