From d322e15038631f9e954937e91a86699b3f036425 Mon Sep 17 00:00:00 2001 From: jez Date: Mon, 4 Oct 2010 12:14:04 +0100 Subject: [PATCH] Explicitly compare pointer to zero to silence a rather pointless VS warning --- include/XPath/impl/xpath_object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/XPath/impl/xpath_object.hpp b/include/XPath/impl/xpath_object.hpp index e0ab41e7..7727a0b4 100644 --- a/include/XPath/impl/xpath_object.hpp +++ b/include/XPath/impl/xpath_object.hpp @@ -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)); }