diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-08-05 07:54:14 -0700 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-08-05 07:54:31 -0700 |
commit | d9deb2c2fe66010bfb7978ae17c7d278143b546d (patch) | |
tree | 75a052bb95f6087421c8fedde549d6930c5af847 /src/common | |
parent | Merge pull request #6586 (diff) | |
parent | Adding ZMQ/Pub support for txpool_add and chain_main events (diff) | |
download | monero-d9deb2c2fe66010bfb7978ae17c7d278143b546d.tar.xz |
Merge pull request #6418
e5214a2ca Adding ZMQ/Pub support for txpool_add and chain_main events (Lee Clagett)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/notify.cpp | 2 | ||||
-rw-r--r-- | src/common/notify.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/common/notify.cpp b/src/common/notify.cpp index e2df5096d..f31100214 100644 --- a/src/common/notify.cpp +++ b/src/common/notify.cpp @@ -62,7 +62,7 @@ static void replace(std::vector<std::string> &v, const char *tag, const char *s) boost::replace_all(str, tag, s); } -int Notify::notify(const char *tag, const char *s, ...) +int Notify::notify(const char *tag, const char *s, ...) const { std::vector<std::string> margs = args; diff --git a/src/common/notify.h b/src/common/notify.h index f813e8def..65d4e1072 100644 --- a/src/common/notify.h +++ b/src/common/notify.h @@ -38,8 +38,12 @@ class Notify { public: Notify(const char *spec); + Notify(const Notify&) = default; + Notify(Notify&&) = default; + Notify& operator=(const Notify&) = default; + Notify& operator=(Notify&&) = default; - int notify(const char *tag, const char *s, ...); + int notify(const char *tag, const char *s, ...) const; private: std::string filename; @@ -47,3 +51,4 @@ private: }; } + |