]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/handle.cpp
Move most platform-specific code into overlay directories
[libs/core.git] / source / io / handle.cpp
index d5183e5b4a349d286f9858e85c3c28234ac5970f..c20f067e5a6ca18b3d04c1c39b173d9ea7ccfe0b 100644 (file)
@@ -25,25 +25,12 @@ Handle::~Handle()
        delete priv;
 }
 
-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;