]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/handle.cpp
Move Handle::operator void * to the common part
[libs/core.git] / source / io / handle.cpp
index c20f067e5a6ca18b3d04c1c39b173d9ea7ccfe0b..693f93f4c1dbf16e052645c416d582b16702e361 100644 (file)
@@ -25,6 +25,11 @@ Handle::~Handle()
        delete priv;
 }
 
+Handle::operator const void *() const
+{
+       return priv->handle!=INVALID_HANDLE_VALUE ? this : 0;
+}
+
 
 Handle::Private::Private():
        handle(INVALID_HANDLE_VALUE)