Optimize QOrganizerManagerEngine::addSorted()
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 17 Jan 2014 21:34:19 +0000 (23:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 18 Jan 2014 16:10:52 +0000 (17:10 +0100)
commit748be9231ff400d2c926811a67ca9bca15c2ab7f
treeeb5afdaa7e3feee82f675aad12e61f4d4f240dbd
parent5d04be5779b7ed4a66ce39cf0a44a33f534381e7
Optimize QOrganizerManagerEngine::addSorted()

...by using std::upper_bound instead of linear search.

Change-Id: Ia990126e7e3fc1ead9b111fd80a5f5329b516d12
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/organizer/qorganizermanagerengine.cpp