From: Torsten Dreyer Date: Thu, 12 Aug 2010 10:16:48 +0000 (+0200) Subject: Fix the fix that turned a warning into a bug :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49887ff06e6ac132ae38cfeb5926eecf8f4b5421;p=simgear.git Fix the fix that turned a warning into a bug :-( --- diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index 98b72f22..c815a2fa 100644 --- a/simgear/structure/SGSharedPtr.hxx +++ b/simgear/structure/SGSharedPtr.hxx @@ -88,7 +88,7 @@ public: { return T::count(_ptr); } bool valid(void) const - { return _ptr != NULL; } + { return _ptr != (T*)0; } void clear() { put(); }