X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fhandle.cpp;fp=source%2Fio%2Fhandle.cpp;h=53b5a7e4fbf8643a1a2347e4540593f63d72de1c;hp=693f93f4c1dbf16e052645c416d582b16702e361;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hpb=8e1db641bb244980bc96ee9da4ba2f0dee8274ad 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; }