aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-12-15 09:11:16 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-01-05 15:45:34 +0100
commit4f1524966a99c83db8c0c9f1ff74789253a1171e (patch)
tree9107f58fdd2c91af6c82e9b2e09a8af36c3d6ca6 /src/walletdb.cpp
parent5d3064bc44e0b608a428e230f384bd3f846dedca (diff)
Replace direct use of 0 with SetNull and IsNull
Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
Diffstat (limited to 'src/walletdb.cpp')
-rw-r--r--src/walletdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp
index 4fd7eb512b..0ec83e7b32 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -439,7 +439,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
}
CKey key;
CPrivKey pkey;
- uint256 hash = 0;
+ uint256 hash;
if (strType == "key")
{
@@ -464,7 +464,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
bool fSkipCheck = false;
- if (hash != 0)
+ if (!hash.IsNull())
{
// hash pubkey/privkey to accelerate wallet load
std::vector<unsigned char> vchKey;