]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/unix/filemonitor_platform.h
Mark overridden virtual functions as such
[libs/core.git] / source / fs / unix / filemonitor_platform.h
index 31b728ffd81b5ff56219aaf7ca8849b3aed34c9c..a6e67a6b72edccd3070a03eb0100105013f77699 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef MSP_FS_FILEMONITOR_PLATFORM_H_
 #define MSP_FS_FILEMONITOR_PLATFORM_H_
 
+#include <msp/fs/path.h>
+#include <msp/io/eventobject.h>
+#include "filemonitor.h"
+
 namespace Msp {
 namespace FS {
 
@@ -16,16 +20,16 @@ public:
        int add_watch(const FS::Path &, int);
        void remove_watch(int);
 
-       virtual void set_block(bool) { }
-       virtual void set_inherit(bool) { }
+       void set_block(bool) override { }
+       void set_inherit(bool) override { }
 
 protected:
-       virtual unsigned do_write(const char *, unsigned);
-       virtual unsigned do_read(char *, unsigned);
+       std::size_t do_write(const char *, std::size_t) override;
+       std::size_t do_read(char *, std::size_t) override;
 
 public:
-       virtual const IO::Handle &get_handle(IO::Mode) { return fd; }
-       virtual const IO::Handle &get_event_handle() { return fd; }
+       const IO::Handle &get_handle(IO::Mode) override { return fd; }
+       const IO::Handle &get_event_handle() override { return fd; }
 };