X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fhandle.cpp;h=53b5a7e4fbf8643a1a2347e4540593f63d72de1c;hb=991fabc1956b73a4007859058fb44171000b452e;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; }