X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fhandle.cpp;h=693f93f4c1dbf16e052645c416d582b16702e361;hp=d5183e5b4a349d286f9858e85c3c28234ac5970f;hb=5a32939eb6e576c223e1be5f80226d9e628a2398;hpb=3b8384a993aed55b348bf51bb02900b3aa010ef8 diff --git a/source/io/handle.cpp b/source/io/handle.cpp index d5183e5..693f93f 100644 --- a/source/io/handle.cpp +++ b/source/io/handle.cpp @@ -27,23 +27,15 @@ Handle::~Handle() Handle::operator const void *() const { -#ifdef WIN32 return priv->handle!=INVALID_HANDLE_VALUE ? this : 0; -#else - return priv->handle!=-1 ? this : 0; -#endif } Handle::Private::Private(): -#ifdef WIN32 handle(INVALID_HANDLE_VALUE) -#else - handle(-1) -#endif { } -Handle::Private &Handle::Private::operator=(H h) +Handle::Private &Handle::Private::operator=(PlatformHandle h) { handle = h; return *this;