aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-08 12:06:09 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-06-11 15:44:01 +0200
commit67ca816849d0aa292a138e6c08edafd17ad6a948 (patch)
treee2ca124d75428396a34ea9308e644436de912268 /src/rpc
parent9f841a6c3d8ebc6a84ac646604eebcdb9d6763ef (diff)
Simplify "bool x = y ? true : false" to "bool x = y"
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index 1f973a0c18..76aa7ec992 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -212,8 +212,8 @@ UniValue validateaddress(const JSONRPCRequest& request)
#ifdef ENABLE_WALLET
isminetype mine = pwallet ? IsMine(*pwallet, dest) : ISMINE_NO;
- ret.push_back(Pair("ismine", (mine & ISMINE_SPENDABLE) ? true : false));
- ret.push_back(Pair("iswatchonly", (mine & ISMINE_WATCH_ONLY) ? true: false));
+ ret.push_back(Pair("ismine", bool(mine & ISMINE_SPENDABLE)));
+ ret.push_back(Pair("iswatchonly", bool(mine & ISMINE_WATCH_ONLY)));
UniValue detail = boost::apply_visitor(DescribeAddressVisitor(pwallet), dest);
ret.pushKVs(detail);
if (pwallet && pwallet->mapAddressBook.count(dest)) {