git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6244e44
)
Fix broken build (invalid use of qualified name std::advance)
author
Gavin Andresen
<gavinandresen@gmail.com>
Mon, 9 May 2011 17:31:10 +0000 (13:31 -0400)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Mon, 9 May 2011 17:31:10 +0000 (13:31 -0400)
rpc.cpp
patch
|
blob
|
history
diff --git
a/rpc.cpp
b/rpc.cpp
index
85f8b02
..
d6a92b3
100644
(file)
--- 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)