Explicitly compare pointer to zero to silence a rather pointless VS warning

This commit is contained in:
jez 2010-10-04 12:14:04 +01:00
parent c1b21c0790
commit d322e15038

View file

@ -342,7 +342,7 @@ public:
ValueType type() const { return ptr_->type(); }
operator bool() const { return ptr_.get(); }
operator bool() const { return ptr_.get() != 0; }
bool operator==(int dummy) const { return (dummy == 0) && (ptr_.get() == 0); }
bool operator!=(int dummy) const { return !(operator==(dummy)); }