diff options
author | Arvid Norberg <arvid@blockstream.io> | 2018-09-13 10:36:41 -0700 |
---|---|---|
committer | Arvid Norberg <arvid@blockstream.io> | 2018-09-13 10:36:41 -0700 |
commit | 3ccfa34b32b7ed9d7bef05baa36827b4b262197e (patch) | |
tree | f8a24afd1e7d6949040aff1e177b8adf7bc84f83 /src/qt/rpcconsole.cpp | |
parent | f0a6a922fe64c16829649281f182dc8c5e153333 (diff) |
convert C-style (void) parameter lists to C++ style ()
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index ad13b20ebe..3857befdf2 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -101,7 +101,7 @@ class QtRPCTimerBase: public QObject, public RPCTimerBase { Q_OBJECT public: - QtRPCTimerBase(std::function<void(void)>& _func, int64_t millis): + QtRPCTimerBase(std::function<void()>& _func, int64_t millis): func(_func) { timer.setSingleShot(true); @@ -111,7 +111,7 @@ public: ~QtRPCTimerBase() {} private: QTimer timer; - std::function<void(void)> func; + std::function<void()> func; }; class QtRPCTimerInterface: public RPCTimerInterface @@ -119,7 +119,7 @@ class QtRPCTimerInterface: public RPCTimerInterface public: ~QtRPCTimerInterface() {} const char *Name() { return "Qt"; } - RPCTimerBase* NewTimer(std::function<void(void)>& func, int64_t millis) + RPCTimerBase* NewTimer(std::function<void()>& func, int64_t millis) { return new QtRPCTimerBase(func, millis); } |