Minor cleanups:
- Typo: Fix a vs. an typo
- Typo: Remove accidental stray semicolon (only remaining instance in repo)
- Correctness/consistency: Use
nullptrinstead ofNULL(only remaining instance in repo)
Minor cleanups:
nullptr instead of NULL (only remaining instance in repo)25 | @@ -26,8 +26,7 @@ 26 | #include "wallet/feebumper.h" 27 | #include "wallet/wallet.h" 28 | #include "wallet/walletdb.h" 29 | - 30 | -#include <init.h> // For StartShutdown 31 | +#include "init.h" // For StartShutdown
wallet/?
No, src one, but it includes src/wallet instead.
This change to a relative include is wrong. We want wallet in the include root, not init in wallet/
4 | @@ -5,7 +5,7 @@ 5 | #ifndef BITCOIN_WALLET_FEEBUMPER_H 6 | #define BITCOIN_WALLET_FEEBUMPER_H 7 | 8 | -#include <primitives/transaction.h> 9 | +#include "primitives/transaction.h"
IMO it makes more sense to have this as <> - "" includes first relative to the directory of the file which would try src/wallet/primitives/transaction.h
24 | @@ -25,7 +25,7 @@ 25 | 26 | #ifdef ENABLE_WALLET 27 | #include <db_cxx.h> 28 | -#include <wallet/wallet.h> 29 | +#include "wallet/wallet.h"
Same comment here. Making this a relative include makes the compiler try src/qt/wallet/wallet.h, which doesn't exist.
@laanwj @paveljanik Thanks for the quick feedback. Good points raised - I've now excluded the quoted form includes.
ACK 0aacfa4.
utACK 0aacfa4, these changes are obviously correct.