mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
temp was extraneous
This commit is contained in:
parent
39f5190e36
commit
153ff6e39d
1 changed files with 4 additions and 6 deletions
10
src/bank.cpp
10
src/bank.cpp
|
|
@ -202,15 +202,13 @@ Json::Value Bank::GetLogs(const std::string &name, const std::string &attempt)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Json::Value temp;
|
|
||||||
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
||||||
{
|
{
|
||||||
temp[i - 1]["to"] = u.log.data[u.log.data.size() - i].to;
|
res[i - 1]["to"] = u.log.data[u.log.data.size() - i].to;
|
||||||
temp[i - 1]["from"] = u.log.data[u.log.data.size() - i].from;
|
res[i - 1]["from"] = u.log.data[u.log.data.size() - i].from;
|
||||||
temp[i - 1]["amount"] = (Json::UInt)u.log.data[u.log.data.size() - i].amount;
|
res[i - 1]["amount"] = (Json::UInt)u.log.data[u.log.data.size() - i].amount;
|
||||||
temp[i - 1]["time"] = (Json::UInt64)u.log.data[u.log.data.size() - i].time;
|
res[i - 1]["time"] = (Json::UInt64)u.log.data[u.log.data.size() - i].time;
|
||||||
}
|
}
|
||||||
res = std::move(temp);
|
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue