diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-14 13:08:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-14 13:08:08 +0300 |
commit | 9b99466b95de4d2666911fd622ff2a5005367516 (patch) | |
tree | 3e919cb0ef832e0f0283d38774dae440608a7857 /plugins/StatusManager/src/KeepStatus | |
parent | 196e01a2ca9f8aefbd3ac55eedc955f56d3d6428 (diff) |
StatusManager to use the common hLangpack variable instead of dealing with separate variables which refer to the same value anyway
Diffstat (limited to 'plugins/StatusManager/src/KeepStatus')
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 5 | ||||
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.h | 2 | ||||
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/ks_options.cpp | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index f0c0051e60..def0bdf677 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -19,8 +19,6 @@ #include "..\stdafx.h" -int hKSLangpack = 0; - struct TimerInfo { int timer; @@ -1203,9 +1201,6 @@ int KSModuleLoaded(WPARAM, LPARAM) void KeepStatusLoad() { - MUUID muidLast = MIID_LAST; - hKSLangpack = GetPluginLangId(muidLast, 0); - HookEvent(ME_SYSTEM_MODULESLOADED, KSModuleLoaded); CreateHookableEvent(ME_KS_CONNECTIONEVENT); diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.h b/plugins/StatusManager/src/KeepStatus/keepstatus.h index 3aa16d78b5..5c8f7aac26 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.h +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.h @@ -20,8 +20,6 @@ #ifndef __KEEPSTATUS_HEADER #define __KEEPSTATUS_HEADER -extern int hKSLangpack; - #define KSMODULENAME "KeepStatus" #define SETTING_CHECKCONNECTION "CheckConnection" #define SETTING_MAXRETRIES "MaxRetries" diff --git a/plugins/StatusManager/src/KeepStatus/ks_options.cpp b/plugins/StatusManager/src/KeepStatus/ks_options.cpp index 0db88f5264..a43d528c34 100644 --- a/plugins/StatusManager/src/KeepStatus/ks_options.cpp +++ b/plugins/StatusManager/src/KeepStatus/ks_options.cpp @@ -566,7 +566,6 @@ int KeepStatusOptionsInit(WPARAM wparam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = hInst; - odp.hLangpack = hKSLangpack; odp.szGroup.w = LPGENW("Status"); odp.szTitle.w = LPGENW("Keep status"); odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; |