summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_privacy.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-13 10:50:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-13 10:50:59 +0000
commit5df94ff719eccd04c7450df35fb5e3f2b36e2ee7 (patch)
tree440d736b199ff849ca0619adf355ffc73750ca7f /protocols/JabberG/src/jabber_privacy.h
parent70496fb739225b559a251f4518c946110aef718c (diff)
wrapping the most evident critical sections into a class
git-svn-id: http://svn.miranda-ng.org/main/trunk@9785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.h')
-rw-r--r--protocols/JabberG/src/jabber_privacy.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.h b/protocols/JabberG/src/jabber_privacy.h
index 8e7656dbbe..99a76ba966 100644
--- a/protocols/JabberG/src/jabber_privacy.h
+++ b/protocols/JabberG/src/jabber_privacy.h
@@ -326,7 +326,7 @@ protected:
public:
CJabberProto* m_proto;
- CRITICAL_SECTION m_cs;
+ mir_cs m_cs;
CPrivacyListManager(CJabberProto *ppro)
{
@@ -334,7 +334,6 @@ public:
m_szActiveListName = NULL;
m_szDefaultListName = NULL;
m_pLists = NULL;
- InitializeCriticalSection(&m_cs);
m_bModified = FALSE;
};
~CPrivacyListManager()
@@ -342,7 +341,6 @@ public:
mir_free(m_szActiveListName);
mir_free(m_szDefaultListName);
RemoveAllLists();
- DeleteCriticalSection(&m_cs);
};
void SetActiveListName(const TCHAR *szListName)
{