From 78b06a4dd2b8348c38ac719f34027a71296b2600 Mon Sep 17 00:00:00 2001 From: "W. J. van der Laan" Date: Mon, 29 Nov 2021 13:02:48 +0100 Subject: [PATCH 1/4] Merge bitcoin/bitcoin#23591: refactor: Use underlying type of isminetype for isminefilter fa2c991ec93bc72d276f0dcd747b3e57c246139b refactor: Use underlying type of isminetype for isminefilter (MarcoFalke) Pull request description: This does not change behavior, but it would be good for code clarity and to avoid `-Wimplicit-int-conversion` compiler warnings to use the an int of the same width for both `isminetype` and `isminefilter`. ACKs for top commit: laanwj: Code review ACK fa2c991ec93bc72d276f0dcd747b3e57c246139b shaavan: crACK fa2c991ec93bc72d276f0dcd747b3e57c246139b promag: Code review ACK fa2c991ec93bc72d276f0dcd747b3e57c246139b. Tree-SHA512: b3e255de7c9b1dea272bc8cb9386b339fe701f18580e03e997c270cac6453088ca2032e26e39f536d66cd1b6fda3e96bdbdc6e960879030e635338d0916277e6 --- src/interfaces/wallet.h | 5 +++-- src/wallet/ismine.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 3339fcafbc..06ff08caf8 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -14,13 +14,14 @@ #include #include +#include #include #include #include #include -#include #include #include +#include #include #include @@ -37,7 +38,7 @@ struct CRecipient; struct PartiallySignedTransaction; struct WalletContext; struct bilingual_str; -typedef uint8_t isminefilter; +using isminefilter = std::underlying_type::type; namespace interfaces { diff --git a/src/wallet/ismine.h b/src/wallet/ismine.h index 38ed7e7770..8605547cf2 100644 --- a/src/wallet/ismine.h +++ b/src/wallet/ismine.h @@ -8,8 +8,9 @@ #include