aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/request.h
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-11-29 19:33:22 +0100
committerFabian Jahr <fjahr@protonmail.com>2020-12-01 18:36:39 +0100
commit1e62350ca20898189904a88dfef9ea11ddcd8626 (patch)
tree4c59267f85c5691faa84656cb0cecb0d386a247e /src/rpc/request.h
parentc502a6dbfb854ca827a5a3925394f9e09d29b898 (diff)
downloadbitcoin-1e62350ca20898189904a88dfef9ea11ddcd8626.tar.xz
refactor: Improve use of explicit keyword
Diffstat (limited to 'src/rpc/request.h')
-rw-r--r--src/rpc/request.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/request.h b/src/rpc/request.h
index 4761e9e371..1241d999a8 100644
--- a/src/rpc/request.h
+++ b/src/rpc/request.h
@@ -40,7 +40,7 @@ public:
std::string peerAddr;
const util::Ref& context;
- JSONRPCRequest(const util::Ref& context) : id(NullUniValue), params(NullUniValue), fHelp(false), context(context) {}
+ explicit JSONRPCRequest(const util::Ref& context) : id(NullUniValue), params(NullUniValue), fHelp(false), context(context) {}
//! Initializes request information from another request object and the
//! given context. The implementation should be updated if any members are