aboutsummaryrefslogtreecommitdiff
path: root/jobs/postmessagejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-02-23 14:42:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-02-23 14:42:33 +0900
commitc82198c9d35a2a91a7440851b6e7d7a71f662c68 (patch)
tree90cb9301f289c6ea97b784c8d35a28427b9245d9 /jobs/postmessagejob.cpp
parent0a653e0e1c6c050f54df12663539cdb2e02717d8 (diff)
downloadlibquotient-c82198c9d35a2a91a7440851b6e7d7a71f662c68.tar.gz
libquotient-c82198c9d35a2a91a7440851b6e7d7a71f662c68.zip
Receipts internal handling improved
Instead of QHash, use QVector< QPair<> > because it's more efficient and we don't really need a hashmap functions, only direct iteration over the list of event-to-receipt pairs. Also, iteration over QJsonObjects is more efficient (and better conveys the intention) than collecting keys() and then finding a value() for each of them. Also, fixed accidental allocation of empty Receipt structures instead of reserving space for them.
Diffstat (limited to 'jobs/postmessagejob.cpp')
0 files changed, 0 insertions, 0 deletions