X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Ffilemonitor.h;h=3ce5d79db2dc991ac562e0bb30f44df5cf11dee7;hb=5d3a5019399f97af0371f4fd6dc415d36de6ac3a;hp=e96aff66637d239b5fd31a996ce544d4eb385bbc;hpb=ffab0509a65f6f32851e64d66a5f7eeb453ab29f;p=libs%2Fcore.git diff --git a/source/fs/filemonitor.h b/source/fs/filemonitor.h index e96aff6..3ce5d79 100644 --- a/source/fs/filemonitor.h +++ b/source/fs/filemonitor.h @@ -1,15 +1,15 @@ #ifndef FILEMONITOR_H_ #define FILEMONITOR_H_ +#include #include #include #include -#include namespace Msp { namespace FS { -class FileMonitor: NonCopyable +class MSPCORE_API FileMonitor: NonCopyable { private: struct Private; @@ -17,16 +17,16 @@ private: struct MonitoredFile { FS::Path path; - bool modified; - int tag; + bool modified = false; + int tag = -1; }; public: sigc::signal signal_file_modified; private: - Private *priv; - IO::EventDispatcher *event_disp; + Private *priv = nullptr; + IO::EventDispatcher *event_disp = nullptr; std::vector files; public: