diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-02-23 14:42:33 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-02-23 14:42:33 +0900 |
commit | c82198c9d35a2a91a7440851b6e7d7a71f662c68 (patch) | |
tree | 90cb9301f289c6ea97b784c8d35a28427b9245d9 /jobs/passwordlogin.cpp | |
parent | 0a653e0e1c6c050f54df12663539cdb2e02717d8 (diff) | |
download | libquotient-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/passwordlogin.cpp')
0 files changed, 0 insertions, 0 deletions