X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fio%2Fhandle.cpp;h=53b5a7e4fbf8643a1a2347e4540593f63d72de1c;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hp=693f93f4c1dbf16e052645c416d582b16702e361;hpb=0f5709b1262b17505c5bab06951611968a4bd326;p=libs%2Fcore.git diff --git a/source/io/handle.cpp b/source/io/handle.cpp index 693f93f..53b5a7e 100644 --- a/source/io/handle.cpp +++ b/source/io/handle.cpp @@ -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; }