X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fconsole.h;h=54774323558a905d8dbe416114d932fd5e279d83;hp=3c0bb71ff3826d23467172a8e86c28f565ae1088;hb=31e72f50fbb34d86877e5110401c49ce3fefd4bb;hpb=378ec811c8df431f5b4e7094eb1949476d3a79fe diff --git a/source/io/console.h b/source/io/console.h index 3c0bb71..5477432 100644 --- a/source/io/console.h +++ b/source/io/console.h @@ -2,6 +2,7 @@ #define MSP_IO_CONSOLE_H_ #include "base.h" +#include "handle.h" namespace Msp { namespace IO { @@ -41,7 +42,7 @@ protected: virtual unsigned do_read(char *, unsigned); public: - virtual Handle get_event_handle(); + virtual const Handle &get_event_handle() { return handle; } static Console &instance(unsigned); };