From c8e2953e01de65ce2baffe84d72366f6a6efebc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 28 Oct 2015 08:31:49 +0000 Subject: Optimize EV_PROTO_DBSETTINGSCHANGED functions to not use mir_strcmp() but just strcmp() It's not needed to user mir_* for checking null pointers when we're comparing const strings with DBCONTACTWRITESETTING values which should be always initialized correctly. git-svn-id: http://svn.miranda-ng.org/main/trunk@15629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_events.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp index 1eb848004c..83d5f286b4 100644 --- a/protocols/JabberG/src/jabber_events.cpp +++ b/protocols/JabberG/src/jabber_events.cpp @@ -162,14 +162,14 @@ int __cdecl CJabberProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) return 0; DBCONTACTWRITESETTING* cws = (DBCONTACTWRITESETTING*)lParam; - if (mir_strcmp(cws->szModule, "CList")) + if (strcmp(cws->szModule, "CList")) return 0; - if (!mir_strcmp(cws->szSetting, "Group")) + if (!strcmp(cws->szSetting, "Group")) OnRenameGroup(cws, hContact); - else if (!mir_strcmp(cws->szSetting, "MyHandle")) + else if (!strcmp(cws->szSetting, "MyHandle")) OnRenameContact(cws, hContact); - else if (!mir_strcmp(cws->szSetting, "NotOnList")) + else if (!strcmp(cws->szSetting, "NotOnList")) OnAddContactForever(cws, hContact); return 0; -- cgit v1.2.3