aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-07-31 14:06:44 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-07-31 14:06:44 +1000
commit050d2e953f23db6d818b9cec6b7dc0e52aa7537c (patch)
tree2647f444088b18845088a5fac3a6fdabe656eeba /src/walletdb.cpp
parentc4316fefa5f56d62eeceb710ee18313bd9be1128 (diff)
downloadbitcoin-050d2e953f23db6d818b9cec6b7dc0e52aa7537c.tar.xz
Remove #define loop from util.h
Replace the loop macro with while (true). The #define caused problems for Qt.
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 7aad779767..014d8cbe29 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -73,7 +73,7 @@ void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountin
if (!pcursor)
throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor");
unsigned int fFlags = DB_SET_RANGE;
- loop
+ while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
@@ -437,7 +437,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
return DB_CORRUPT;
}
- loop
+ while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);