summaryrefslogtreecommitdiff
path: root/plugins/mTextControl/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 18:23:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 18:23:04 +0300
commit64e3214c2222543350f51b517a6b75b6b02b81cf (patch)
tree912a29fc20b5cda33f0e7c75170cedea6faec03c /plugins/mTextControl/src
parent3618cbf67d6b02fb52b364a93a836a6b59f06a2f (diff)
unused MODULENAME macros removed
Diffstat (limited to 'plugins/mTextControl/src')
-rw-r--r--plugins/mTextControl/src/main.cpp2
-rw-r--r--plugins/mTextControl/src/stdafx.h3
-rw-r--r--plugins/mTextControl/src/textcontrol.cpp9
3 files changed, 3 insertions, 11 deletions
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<CMPlugin>(MODULENAME, pluginInfoEx)
+ PLUGIN<CMPlugin>("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);
}