summaryrefslogtreecommitdiff
path: root/Plugins/utils/ContactAsyncQueue.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2008-06-04 03:17:05 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2008-06-04 03:17:05 +0000
commitf0d7043a6ec0011c2fd8c8fbbe1250b15ae4aef3 (patch)
tree91f1b2a692e10c7c7202860b475d8ba8eab2bf88 /Plugins/utils/ContactAsyncQueue.cpp
parentbc527b1e07f18ecab6badda0a96db529c3472043 (diff)
some fixes
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@111 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/utils/ContactAsyncQueue.cpp')
-rw-r--r--Plugins/utils/ContactAsyncQueue.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Plugins/utils/ContactAsyncQueue.cpp b/Plugins/utils/ContactAsyncQueue.cpp
index ca6bf83..9ea2682 100644
--- a/Plugins/utils/ContactAsyncQueue.cpp
+++ b/Plugins/utils/ContactAsyncQueue.cpp
@@ -22,9 +22,12 @@ Boston, MA 02111-1307, USA.
// Itens with higher time at end
-static int QueueSortItems(const QueueItem *i1, const QueueItem *i2)
+static int QueueSortItems(const QueueItem *oldItem, const QueueItem *newItem)
{
- return i1->check_time - i2->check_time;
+ if (oldItem->check_time == newItem->check_time)
+ return -1;
+
+ return oldItem->check_time - newItem->check_time;
}
// Itens with higher time at end