X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGSharedPtr.hxx;h=c815a2fa566f94253282109ec6d5a76ce4489dad;hb=0908f867145683be76d2c26274451a44a7b1d5b0;hp=98b72f22c902a37dfd43c07b2f8418a36687ebbe;hpb=1f6555c9ad3fb75cb474fbf99b46333830285514;p=simgear.git 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(); }