From d6195a9f308c585670dcb2a72c9ea730c66434af Mon Sep 17 00:00:00 2001 From: barton26 Date: Tue, 2 Nov 2021 16:39:32 -0400 Subject: [PATCH] convert C-style (void) parameter lists to C++ style () --- src/init.cpp | 2 +- src/key.h | 2 +- src/qt/macnotificationhandler.h | 2 +- src/test/wallet_tests.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index c59fa6fc01..341c34bb90 100755 --- a/src/init.cpp +++ b/src/init.cpp @@ -597,7 +597,7 @@ std::string VersionMessage() * Ensure that Bitcoin is running in a usable environment with all * necessary library support. */ -bool InitSanityCheck(void) +bool InitSanityCheck() { // The below sanity check is still required for OpenSSL via key.cpp until Bitcoin's secp256k1 is ported over. For now we have // only ported the accelerated hashing. diff --git a/src/key.h b/src/key.h index 9753f4784b..c1b3673323 100644 --- a/src/key.h +++ b/src/key.h @@ -182,6 +182,6 @@ class CKey }; /** Check that required EC support is available at runtime */ -bool ECC_InitSanityCheck(void); +bool ECC_InitSanityCheck(); #endif diff --git a/src/qt/macnotificationhandler.h b/src/qt/macnotificationhandler.h index 8e08a8c5c7..fa26952e64 100644 --- a/src/qt/macnotificationhandler.h +++ b/src/qt/macnotificationhandler.h @@ -15,7 +15,7 @@ class MacNotificationHandler : public QObject void showNotification(const QString &title, const QString &text); /** check if OS can handle UserNotifications */ - bool hasUserNotificationCenterSupport(void); + bool hasUserNotificationCenterSupport(); static MacNotificationHandler *instance(); }; diff --git a/src/test/wallet_tests.cpp b/src/test/wallet_tests.cpp index caaf2b2f13..ee638c08c2 100755 --- a/src/test/wallet_tests.cpp +++ b/src/test/wallet_tests.cpp @@ -41,7 +41,7 @@ static void add_coin(int64_t nValue, int nAge = 6*24, bool fIsFromMe = false, in vCoins.push_back(output); } -static void empty_wallet(void) +static void empty_wallet() { for(COutput& output : vCoins) delete output.tx;