Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: convert C-style (void) parameter lists to C++ style () #2373

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ class CKey
};

/** Check that required EC support is available at runtime */
bool ECC_InitSanityCheck(void);
bool ECC_InitSanityCheck();

#endif
2 changes: 1 addition & 1 deletion src/qt/macnotificationhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
2 changes: 1 addition & 1 deletion src/test/wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down