summaryrefslogtreecommitdiff
path: root/plugins/Variables/parse_metacontacts.cpp
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2012-07-02 02:27:39 +0000
committerVlad Mironov <mironych@googlemail.com>2012-07-02 02:27:39 +0000
commit8ff9ea222993b065a49efa138919b3e062299697 (patch)
treed8abd90f46be9390143f4ccb15ac3d069397f3c8 /plugins/Variables/parse_metacontacts.cpp
parent847064757239d021d1aa612067737865d31aceb2 (diff)
Крошечная оптимизация.
git-svn-id: http://svn.miranda-ng.org/main/trunk@710 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/parse_metacontacts.cpp')
-rw-r--r--plugins/Variables/parse_metacontacts.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Variables/parse_metacontacts.cpp b/plugins/Variables/parse_metacontacts.cpp
index 341457f240..128a04a99b 100644
--- a/plugins/Variables/parse_metacontacts.cpp
+++ b/plugins/Variables/parse_metacontacts.cpp
@@ -53,7 +53,7 @@ static TCHAR *parseGetParent(ARGUMENTSINFO *ai)
TCHAR* szUniqueID = NULL;
char* szProto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
if (szProto != NULL)
- szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact, 1);
+ szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact);
if (szUniqueID == NULL)
{
@@ -115,7 +115,7 @@ static TCHAR *parseGetDefault(ARGUMENTSINFO *ai)
TCHAR* szUniqueID = NULL;
char* szProto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
if (szProto != NULL)
- szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact, 1);
+ szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact);
if (szUniqueID == NULL) {
szProto = PROTOID_HANDLE;
@@ -176,11 +176,10 @@ static TCHAR *parseGetMostOnline(ARGUMENTSINFO *ai)
TCHAR* szUniqueID = NULL;
char* szProto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
if (szProto != NULL)
- szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact, 1);
+ szUniqueID = getContactInfoT(CNF_UNIQUEID, hContact);
if (szUniqueID == NULL) {
szProto = PROTOID_HANDLE;
- //szUniqueID = itot((INT_PTR)hContact);
szUniqueID = (TCHAR*)mir_alloc(32);
_stprintf(szUniqueID, _T("%p"), hContact);
if (szProto == NULL || szUniqueID == NULL)