]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/handle.cpp
Mark boolean conversion operators as explicit
[libs/core.git] / source / io / handle.cpp
index 693f93f4c1dbf16e052645c416d582b16702e361..53b5a7e4fbf8643a1a2347e4540593f63d72de1c 100644 (file)
@@ -25,9 +25,9 @@ Handle::~Handle()
        delete priv;
 }
 
-Handle::operator const void *() const
+Handle::operator bool() const
 {
-       return priv->handle!=INVALID_HANDLE_VALUE ? this : 0;
+       return priv->handle!=INVALID_HANDLE_VALUE;
 }