aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-05-09 13:31:10 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-05-09 13:31:10 -0400
commitc0430f42b868dbf996a416d3a9d81d1c8c07e47c (patch)
treef0aace1236be78c568ac206b6a7caeaff43187d9 /rpc.cpp
parent6244e449994afc38001cf6863d7ad2644c5b040a (diff)
Fix broken build (invalid use of qualified name std::advance)
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc.cpp b/rpc.cpp
index 85f8b02216..d6a92b3463 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -1119,7 +1119,8 @@ Value listtransactions(const Array& params, bool fHelp)
}
// Now: iterate backwards until we have nCount items to return:
- for (TxItems::reverse_iterator it = txByTime.rbegin(), std::advance(it, nFrom); it != txByTime.rend(); ++it)
+ TxItems::reverse_iterator it = txByTime.rbegin();
+ for (std::advance(it, nFrom); it != txByTime.rend(); ++it)
{
CWalletTx *const pwtx = (*it).second.first;
if (pwtx != 0)