diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-24 15:40:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-24 15:40:33 +0000 |
commit | 46a3d5c05b077f7dc3034465b0b7e0a8ea6b5204 (patch) | |
tree | bc3e10982a336de09a92a0887e07b0420eab34ea /plugins/StatusPlugins/StartupStatus | |
parent | 60066ee3ab1d80569d5c13fc9c14fe082aa28be4 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8259 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus')
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/startupstatus.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/startupstatus.cpp b/plugins/StatusPlugins/StartupStatus/startupstatus.cpp index 92464e5d90..f43d556e3c 100644 --- a/plugins/StatusPlugins/StartupStatus/startupstatus.cpp +++ b/plugins/StatusPlugins/StartupStatus/startupstatus.cpp @@ -21,14 +21,14 @@ static UINT_PTR setStatusTimerId = 0;
-int CompareSettings(const TSSSetting* p1, const TSSSetting* p2)
+int CompareSettings(const TSSSetting *p1, const TSSSetting *p2)
{
return lstrcmpA(p1->szName, p2->szName);
}
static TSettingsList startupSettings(10, CompareSettings);
-TSSSetting::TSSSetting(PROTOACCOUNT* pa)
+TSSSetting::TSSSetting(PROTOACCOUNT *pa)
{
cbSize = sizeof(PROTOCOLSETTINGEX);
szName = pa->szModuleName;
@@ -67,16 +67,12 @@ TSSSetting::TSSSetting(int profile, PROTOACCOUNT* pa) TSSSetting::~TSSSetting()
{
- if (szMsg != NULL)
- free(szMsg);
+ free(szMsg);
}
/////////////////////////////////////////////////////////////////////////////////////////
-static HANDLE
-hProtoAckHook,
-hCSStatusChangeHook,
-hStatusChangeHook;
+static HANDLE hProtoAckHook, hCSStatusChangeHook, hStatusChangeHook;
static HWND hMessageWindow;
@@ -330,7 +326,9 @@ static int OnOkToExit(WPARAM, LPARAM) if (npi.szMsg != NULL) {
db_set_ts(NULL, MODULENAME, lastMsg, npi.tszMsg);
mir_free(npi.tszMsg);
- } } }
+ }
+ }
+ }
if (db_get_b(NULL, MODULENAME, SETTING_SETPROFILE, 1) || db_get_b(NULL, MODULENAME, SETTING_OFFLINECLOSE, 0)) {
if (ServiceExists(MS_CLIST_SETSTATUSMODE))
|