summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-10-09 19:57:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-10-09 19:57:09 +0300
commit85f20195ec2408938c5c06821914d1cc4dce1b41 (patch)
treea955886852026c09c7fc5fc48597211643947ecb /plugins/MyDetails/src
parente9fd088531d1520799f8ac48086cc9ae6656395e (diff)
StatusManager:
- fix for the 'Ignore locked account statuses' checkbox behaviour; - massive code cleaning; - version bump
Diffstat (limited to 'plugins/MyDetails/src')
-rw-r--r--plugins/MyDetails/src/data.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 7454b175b8..d0ab1a3ba2 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -81,8 +81,7 @@ Protocol::Protocol(const char *aName, const wchar_t *descr)
}
Protocol::~Protocol()
-{
-}
+{}
void Protocol::lcopystr(wchar_t *dest, wchar_t *src, size_t maxlen)
{
@@ -161,16 +160,15 @@ void Protocol::SetStatus(int aStatus)
PROTOCOLSETTINGEX **pse = (PROTOCOLSETTINGEX **)mir_calloc(pCount * sizeof(PROTOCOLSETTINGEX *));
for (i = 0; i < pCount; i++) {
pse[i] = (PROTOCOLSETTINGEX *)mir_calloc(sizeof(PROTOCOLSETTINGEX));
- pse[i]->szName = "";
+ pse[i]->m_szName = "";
}
- pse[0]->cbSize = sizeof(PROTOCOLSETTINGEX);
- pse[0]->status = aStatus;
- pse[0]->szName = name;
+ pse[0]->m_status = aStatus;
+ pse[0]->m_szName = name;
wchar_t status_msg[256];
GetStatusMsg(aStatus, status_msg, _countof(status_msg));
- pse[0]->szMsg = status_msg;
+ pse[0]->m_szMsg = status_msg;
CallService(MS_CS_SETSTATUSEX, (WPARAM)&pse, 0);