]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/memory.cpp
Use the new Handle class to hide platform details from public headers
[libs/core.git] / source / io / memory.cpp
index 79956cdafecae37a113b7421d10cb30fadd1d2c1..f89d9fc894c26d207e6e3b8300d9f9dc99c6f7ae 100644 (file)
@@ -1,5 +1,6 @@
 #include <algorithm>
 #include <cstring>
+#include "handle.h"
 #include "memory.h"
 
 using namespace std;
@@ -106,7 +107,7 @@ unsigned Memory::seek(int off, SeekType type)
        return pos-begin;
 }
 
-Handle Memory::get_event_handle()
+const Handle &Memory::get_event_handle()
 {
        throw logic_error("Memory doesn't support events");
 }