X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGSharedPtr.hxx;h=c815a2fa566f94253282109ec6d5a76ce4489dad;hb=66c9187c95fb6861d9737f135fdf68d1bfa265f3;hp=f321b12dc4a3e4578b14276d2e5f74dfded32b2c;hpb=819d3f5ded821235bd1c9bf0350b683ac7b5df89;p=simgear.git diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index f321b12d..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; } + { return _ptr != (T*)0; } void clear() { put(); }