diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-01 23:07:38 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-01 23:07:38 +0100 |
commit | 6c00c01432565758ef9dd7ef382c742375fe1ae3 (patch) | |
tree | 42dcedf89c178d3921a0891bdaaf4acba9d0abb1 /lib | |
parent | Add missing virtual destructor (diff) | |
download | mygrate-6c00c01432565758ef9dd7ef382c742375fe1ae3.tar.bz2 mygrate-6c00c01432565758ef9dd7ef382c742375fe1ae3.tar.xz mygrate-6c00c01432565758ef9dd7ef382c742375fe1ae3.zip |
Add event source ptr typedef
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eventSourceBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/eventSourceBase.h b/lib/eventSourceBase.h index 52545df..6d512b2 100644 --- a/lib/eventSourceBase.h +++ b/lib/eventSourceBase.h @@ -2,6 +2,7 @@ #define MYGRATE_EVENTSOURCEBASE_H #include "eventHandlerBase.h" +#include <memory> namespace MyGrate { class EventSourceBase { @@ -9,6 +10,7 @@ namespace MyGrate { virtual ~EventSourceBase() = default; virtual void readEvents(EventHandlerBase &) = 0; }; + using EventSourceBasePtr = std::unique_ptr<EventSourceBase>; } #endif |