X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fhandle.cpp;h=693f93f4c1dbf16e052645c416d582b16702e361;hp=c20f067e5a6ca18b3d04c1c39b173d9ea7ccfe0b;hb=0f5709b1262b17505c5bab06951611968a4bd326;hpb=8e696b9c1ee35f2ce5b9264f31b1963758d65ced diff --git a/source/io/handle.cpp b/source/io/handle.cpp index c20f067..693f93f 100644 --- a/source/io/handle.cpp +++ b/source/io/handle.cpp @@ -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)