From 64e3214c2222543350f51b517a6b75b6b02b81cf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 18:23:04 +0300 Subject: unused MODULENAME macros removed --- plugins/mTextControl/src/main.cpp | 2 +- plugins/mTextControl/src/stdafx.h | 3 --- plugins/mTextControl/src/textcontrol.cpp | 9 ++------- 3 files changed, 3 insertions(+), 11 deletions(-) (limited to 'plugins/mTextControl/src') diff --git a/plugins/mTextControl/src/main.cpp b/plugins/mTextControl/src/main.cpp index 44c04969cb..512b86a543 100644 --- a/plugins/mTextControl/src/main.cpp +++ b/plugins/mTextControl/src/main.cpp @@ -45,7 +45,7 @@ PLUGININFOEX pluginInfoEx = }; CMPlugin::CMPlugin() : - PLUGIN(MODULENAME, pluginInfoEx) + PLUGIN("MTextControl", pluginInfoEx) {} ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/plugins/mTextControl/src/stdafx.h b/plugins/mTextControl/src/stdafx.h index 2edf57f236..27ec265e2d 100644 --- a/plugins/mTextControl/src/stdafx.h +++ b/plugins/mTextControl/src/stdafx.h @@ -47,9 +47,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "fancy_rtf.h" #include "textcontrol.h" -#define MODULENAME "MTextControl" // DB module for this plugin -#define MODULNAMEW L"MTextControl" // DB module for this plugin - #define MODULTITLE "Text Display" // globals diff --git a/plugins/mTextControl/src/textcontrol.cpp b/plugins/mTextControl/src/textcontrol.cpp index a033bb1799..a9f3263794 100644 --- a/plugins/mTextControl/src/textcontrol.cpp +++ b/plugins/mTextControl/src/textcontrol.cpp @@ -32,19 +32,14 @@ struct TextControlData void MTextControl_RegisterClass() { - WNDCLASSEX wcl; + WNDCLASSEX wcl = {}; wcl.cbSize = sizeof(wcl); wcl.lpfnWndProc = MTextControlWndProc; wcl.style = CS_GLOBALCLASS; - wcl.cbClsExtra = 0; - wcl.cbWndExtra = 0; wcl.hInstance = g_plugin.getInst(); - wcl.hIcon = nullptr; wcl.hCursor = LoadCursor(nullptr, IDC_ARROW); wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH); - wcl.lpszMenuName = nullptr; - wcl.lpszClassName = MODULNAMEW; - wcl.hIconSm = nullptr; + wcl.lpszClassName = L"MTextControl"; RegisterClassEx(&wcl); } -- cgit v1.2.3