summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_instances.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-17 08:49:56 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-17 08:49:56 +0000
commitd73ec8491056f109d8470b973e9f514a26644010 (patch)
tree258b99b57c137c507da04665e442b445acaf6009 /protocols/Tox/src/tox_instances.cpp
parent1c894ee5f3448792123b550e0620fe3bafc1635e (diff)
Tox:
- updated tox lib - ability to disable udp - ability to disable ipv6 - socks proxy support git-svn-id: http://svn.miranda-ng.org/main/trunk@10212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_instances.cpp')
-rw-r--r--protocols/Tox/src/tox_instances.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Tox/src/tox_instances.cpp b/protocols/Tox/src/tox_instances.cpp
index ea010f894a..414cd7b767 100644
--- a/protocols/Tox/src/tox_instances.cpp
+++ b/protocols/Tox/src/tox_instances.cpp
@@ -10,14 +10,14 @@ int CToxProto::CompareProtos(const CToxProto *p1, const CToxProto *p2)
CToxProto* CToxProto::InitProtoInstance(const char* protoName, const wchar_t* userName)
{
CToxProto *ppro = new CToxProto(protoName, userName);
- CToxProto::instanceList.insert(ppro);
+ instanceList.insert(ppro);
return ppro;
}
int CToxProto::UninitProtoInstance(CToxProto* ppro)
{
- CToxProto::instanceList.remove(ppro);
+ instanceList.remove(ppro);
delete ppro;
@@ -26,19 +26,19 @@ int CToxProto::UninitProtoInstance(CToxProto* ppro)
void CToxProto::UninitInstances()
{
- CToxProto::instanceList.destroy();
+ instanceList.destroy();
}
CToxProto* CToxProto::GetContactInstance(MCONTACT hContact)
{
- char *proto = (char *)::CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
if (proto == NULL)
return NULL;
- for (int i = 0; i < CToxProto::instanceList.getCount(); i++)
- if ( !::strcmp(proto, CToxProto::instanceList[i]->m_szModuleName))
- return CToxProto::instanceList[i];
+ for (int i = 0; i < instanceList.getCount(); i++)
+ if ( !::strcmp(proto, instanceList[i]->m_szModuleName))
+ return instanceList[i];
return NULL;
} \ No newline at end of file