summaryrefslogtreecommitdiff
path: root/plugins/CSList/src/cslist.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-23 14:01:17 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-23 14:01:17 +0000
commitf33e8fab62c9ee9a73617fafde7b33715420f4c9 (patch)
tree4124c93424d05495b83fb4cdb5c2e197888a4f84 /plugins/CSList/src/cslist.cpp
parent197abf300c77a2ca088d2cd22ea51e23dfc48983 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CSList/src/cslist.cpp')
-rw-r--r--plugins/CSList/src/cslist.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp
index ee3d6ccad1..bf2f093749 100644
--- a/plugins/CSList/src/cslist.cpp
+++ b/plugins/CSList/src/cslist.cpp
@@ -45,7 +45,7 @@ PLUGININFOEX pluginInfoEx =
__AUTHORWEB,
UNICODE_AWARE,
// {C8CC7414-6507-4AF6-925A-83C1D2F7BE8C}
- { 0xc8cc7414, 0x6507, 0x4af6, { 0x92, 0x5a, 0x83, 0xc1, 0xd2, 0xf7, 0xbe, 0x8c } }
+ {0xc8cc7414, 0x6507, 0x4af6, {0x92, 0x5a, 0x83, 0xc1, 0xd2, 0xf7, 0xbe, 0x8c}}
};
// ====[ MAIN ]===============================================================
@@ -140,7 +140,7 @@ extern "C" __declspec(dllexport) int Load()
for (int i=0; i < SIZEOF(forms); i++) {
char szSettingName[64];
- mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", __INTERNAL_NAME, forms[i].pszIconIcoLib);
+ mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODNAME, forms[i].pszIconIcoLib);
sid.pszName = szSettingName;
sid.ptszDescription = forms[i].ptszDescr;
@@ -312,6 +312,15 @@ CSWindow::CSWindow(char *protoName)
m_filterString = NULL;
}
+void __fastcall SAFE_FREE(void** p)
+{
+ if (*p)
+ {
+ free(*p);
+ *p = NULL;
+ }
+}
+
CSWindow::~CSWindow()
{
delete m_itemslist;
@@ -372,8 +381,8 @@ void CSWindow::initButtons()
void CSWindow::loadWindowPosition()
{
- if ( getByte( "RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION ))
- Utils_RestoreWindowPosition(m_handle,NULL,__INTERNAL_NAME,"Position");
+ if (getByte("RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION))
+ Utils_RestoreWindowPosition(m_handle, NULL, MODNAME, "Position");
}
void CSWindow::toggleEmptyListMessage()