summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/Engine/UnrecentChooser.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-23 09:29:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-23 09:29:45 +0000
commit1dddc938c7558ef77930f9d5d8fa75891d0b1f26 (patch)
treeb2ca5584dfb26c38914ae561a01f6e34163582e7 /plugins/Boltun/src/Engine/UnrecentChooser.cpp
parente47ee115a0e6f00baa9c7153c47b9f1435c9f229 (diff)
added precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@3700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/Engine/UnrecentChooser.cpp')
-rw-r--r--plugins/Boltun/src/Engine/UnrecentChooser.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Boltun/src/Engine/UnrecentChooser.cpp b/plugins/Boltun/src/Engine/UnrecentChooser.cpp
index b2e5303f5a..d11806503b 100644
--- a/plugins/Boltun/src/Engine/UnrecentChooser.cpp
+++ b/plugins/Boltun/src/Engine/UnrecentChooser.cpp
@@ -18,12 +18,12 @@
//
//***********************************************************
-#include "UnrecentChooser.h"
+#include "..\boltun.h"
using namespace std;
UnRecentChooser::UnRecentChooser()
- :last(-1), min(-1), newItemsPrio(-1), maxOldPrio(-1)
+ :last(-1), minimum(-1), newItemsPrio(-1), maxOldPrio(-1)
{
}
@@ -34,8 +34,8 @@ void UnRecentChooser::AddChoice(tstring value, float prio)
int val = (int)items[value];
oldItems.insert(make_pair(val, value));
oldPrios.insert(make_pair(value, prio));
- if (min > val || min == -1)
- min = val;
+ if (minimum > val || minimum == -1)
+ minimum = val;
if (maxOldPrio < prio)
maxOldPrio = prio;
}
@@ -59,17 +59,17 @@ tstring UnRecentChooser::Choose()
res = newItems[num];
}
else
- if (min == -1)
+ if (minimum == -1)
res = _T("");
else
{
float minprio = maxOldPrio / 1.5F;
- while (oldPrios[oldItems[min]] < minprio)
- min++;
- res = oldItems[min];
+ while (oldPrios[oldItems[minimum]] < minprio)
+ minimum++;
+ res = oldItems[minimum];
}
//Clean items
- min = -1;
+ minimum = -1;
newItemsPrio = -1;
maxOldPrio = -1;
oldItems.clear();