From 1dddc938c7558ef77930f9d5d8fa75891d0b1f26 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 Feb 2013 09:29:45 +0000 Subject: added precompiled header git-svn-id: http://svn.miranda-ng.org/main/trunk@3700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Boltun/src/Engine/CriticalSection.h | 2 -- plugins/Boltun/src/Engine/Mind.cpp | 10 +--------- plugins/Boltun/src/Engine/Mind.h | 2 -- plugins/Boltun/src/Engine/MyCodeCvt.cpp | 2 +- plugins/Boltun/src/Engine/MyCodeCvt.h | 4 ---- plugins/Boltun/src/Engine/PerContactData.h | 4 ---- plugins/Boltun/src/Engine/TalkEngine.cpp | 4 +--- plugins/Boltun/src/Engine/UnrecentChooser.cpp | 18 +++++++++--------- plugins/Boltun/src/Engine/UnrecentChooser.h | 5 +---- plugins/Boltun/src/Engine/ValueChooser.h | 3 --- plugins/Boltun/src/Engine/WordsList.cpp | 2 +- plugins/Boltun/src/Engine/WordsList.h | 4 ---- 12 files changed, 14 insertions(+), 46 deletions(-) (limited to 'plugins/Boltun/src/Engine') diff --git a/plugins/Boltun/src/Engine/CriticalSection.h b/plugins/Boltun/src/Engine/CriticalSection.h index 59bc91beb9..550aa32696 100644 --- a/plugins/Boltun/src/Engine/CriticalSection.h +++ b/plugins/Boltun/src/Engine/CriticalSection.h @@ -21,8 +21,6 @@ #ifndef CriticalSectionH #define CriticalSectionH -#include - class CriticalSection { CRITICAL_SECTION csQueue; diff --git a/plugins/Boltun/src/Engine/Mind.cpp b/plugins/Boltun/src/Engine/Mind.cpp index fc4520de55..6f558e002b 100644 --- a/plugins/Boltun/src/Engine/Mind.cpp +++ b/plugins/Boltun/src/Engine/Mind.cpp @@ -18,15 +18,7 @@ // //*********************************************************** -#include "Mind.h" -#include -#include -#include "tstring.h" -#include "assert.h" - -#include - -#include "MyCodeCvt.h" +#include "..\boltun.h" using namespace std; diff --git a/plugins/Boltun/src/Engine/Mind.h b/plugins/Boltun/src/Engine/Mind.h index 23e0a41bd3..cdee200002 100644 --- a/plugins/Boltun/src/Engine/Mind.h +++ b/plugins/Boltun/src/Engine/Mind.h @@ -21,12 +21,10 @@ #ifndef MindH #define MindH -#include #include #include #include #include "WordsList.h" -#include #include "tstring.h" diff --git a/plugins/Boltun/src/Engine/MyCodeCvt.cpp b/plugins/Boltun/src/Engine/MyCodeCvt.cpp index 5d7baf4d88..e34575f811 100644 --- a/plugins/Boltun/src/Engine/MyCodeCvt.cpp +++ b/plugins/Boltun/src/Engine/MyCodeCvt.cpp @@ -18,7 +18,7 @@ // //*********************************************************** -#include "MyCodeCvt.h" +#include "..\boltun.h" using namespace std; diff --git a/plugins/Boltun/src/Engine/MyCodeCvt.h b/plugins/Boltun/src/Engine/MyCodeCvt.h index b4508c66de..40ca093795 100644 --- a/plugins/Boltun/src/Engine/MyCodeCvt.h +++ b/plugins/Boltun/src/Engine/MyCodeCvt.h @@ -21,10 +21,6 @@ #ifndef MYCODECVT_H #define MYCODECVT_H -#include -#include -#include - typedef std::codecvt MyCodeCvtBase; class MyCodeCvt diff --git a/plugins/Boltun/src/Engine/PerContactData.h b/plugins/Boltun/src/Engine/PerContactData.h index 14b17784b9..d130a03838 100644 --- a/plugins/Boltun/src/Engine/PerContactData.h +++ b/plugins/Boltun/src/Engine/PerContactData.h @@ -21,10 +21,6 @@ #ifndef PerContactDataH #define PerContactDataH -#include -#include -#include - #include "CriticalSection.h" static std::map perContactDataObjects; diff --git a/plugins/Boltun/src/Engine/TalkEngine.cpp b/plugins/Boltun/src/Engine/TalkEngine.cpp index 550aac66cf..0c711ab652 100644 --- a/plugins/Boltun/src/Engine/TalkEngine.cpp +++ b/plugins/Boltun/src/Engine/TalkEngine.cpp @@ -18,9 +18,7 @@ // //*********************************************************** -#include "TalkEngine.h" -#include -#include +#include "..\boltun.h" #ifdef _DEBUG 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(); diff --git a/plugins/Boltun/src/Engine/UnrecentChooser.h b/plugins/Boltun/src/Engine/UnrecentChooser.h index 91a961e307..e815a6ec96 100644 --- a/plugins/Boltun/src/Engine/UnrecentChooser.h +++ b/plugins/Boltun/src/Engine/UnrecentChooser.h @@ -21,9 +21,6 @@ #ifndef UnRecentChooserH #define UnRecentChooserH -#include -#include -#include #include "tstring.h" class UnRecentChooser @@ -35,7 +32,7 @@ class UnRecentChooser std::map oldItems; std::map oldPrios; size_t last; - int min; + int minimum; static const size_t maxItems = 100; public: UnRecentChooser(); diff --git a/plugins/Boltun/src/Engine/ValueChooser.h b/plugins/Boltun/src/Engine/ValueChooser.h index 219a55a8f2..8a3add430a 100644 --- a/plugins/Boltun/src/Engine/ValueChooser.h +++ b/plugins/Boltun/src/Engine/ValueChooser.h @@ -21,9 +21,6 @@ #ifndef StringChooserH #define StringChooserH -#include -#include - template > class ValueChooser { diff --git a/plugins/Boltun/src/Engine/WordsList.cpp b/plugins/Boltun/src/Engine/WordsList.cpp index 3209bf2db6..08cd150aaf 100644 --- a/plugins/Boltun/src/Engine/WordsList.cpp +++ b/plugins/Boltun/src/Engine/WordsList.cpp @@ -18,7 +18,7 @@ // //*********************************************************** -#include "WordsList.h" +#include "..\boltun.h" using namespace std; diff --git a/plugins/Boltun/src/Engine/WordsList.h b/plugins/Boltun/src/Engine/WordsList.h index bd74b2007b..b6e0792101 100644 --- a/plugins/Boltun/src/Engine/WordsList.h +++ b/plugins/Boltun/src/Engine/WordsList.h @@ -21,10 +21,6 @@ #ifndef WordsListH #define WordsListH -#include -#include -#include -#include "tchar.h" #include "tstring.h" class WordsList -- cgit v1.2.3