File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 13
13
#include < util/message.h>
14
14
#include < util/ui_change_type.h>
15
15
16
+ #include < cstdint>
16
17
#include < functional>
17
18
#include < map>
18
19
#include < memory>
19
- #include < stdint.h>
20
20
#include < string>
21
21
#include < tuple>
22
+ #include < type_traits>
22
23
#include < utility>
23
24
#include < vector>
24
25
@@ -34,7 +35,7 @@ struct CRecipient;
34
35
struct PartiallySignedTransaction ;
35
36
struct WalletContext ;
36
37
struct bilingual_str ;
37
- typedef uint8_t isminefilter;
38
+ using isminefilter = std::underlying_type<isminetype>::type ;
38
39
39
40
namespace interfaces {
40
41
Original file line number Diff line number Diff line change 8
8
9
9
#include < script/standard.h>
10
10
11
- #include < stdint.h>
12
11
#include < bitset>
12
+ #include < cstdint>
13
+ #include < type_traits>
13
14
14
15
class CWallet ;
15
16
class CScript ;
@@ -35,8 +36,7 @@ class CScript;
35
36
* ISMINE_USED: the scriptPubKey corresponds to a used address owned by the wallet user.
36
37
*
37
38
*/
38
- enum isminetype : unsigned int
39
- {
39
+ enum isminetype : unsigned int {
40
40
ISMINE_NO = 0 ,
41
41
ISMINE_WATCH_ONLY = 1 << 0 ,
42
42
ISMINE_SPENDABLE = 1 << 1 ,
@@ -46,7 +46,7 @@ enum isminetype : unsigned int
46
46
ISMINE_ENUM_ELEMENTS,
47
47
};
48
48
/* * used for bitflags of isminetype */
49
- typedef uint8_t isminefilter;
49
+ using isminefilter = std::underlying_type<isminetype>::type ;
50
50
51
51
/* *
52
52
* Cachable amount subdivided into watchonly and spendable parts.
You can’t perform that action at this time.
0 commit comments