From 878d72910cccf4f84c7cb45bb4c11134920f3166 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 18 Aug 2015 11:49:54 +0000 Subject: - naming conflict; - warning fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TopToolBar/src/toolbar.cpp') diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index 650e2d03d4..f6368d6e58 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -546,13 +546,13 @@ int OnPluginLoad(WPARAM, LPARAM lParam) int OnPluginUnload(WPARAM, LPARAM lParam) { - int hLangpack = GetPluginLangByInstance((HINSTANCE)lParam); - if (hLangpack) { + int lang = GetPluginLangByInstance((HINSTANCE)lParam); + if (lang) { bool bNeedUpdate = false; mir_cslock lck(csButtonsHook); for (int i = Buttons.getCount() - 1; i >= 0; i--) - if (Buttons[i]->hLangpack == hLangpack) { + if (Buttons[i]->hLangpack == lang) { TTBRemoveButton(Buttons[i]->id, 0); bNeedUpdate = true; } -- cgit v1.2.3