diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-10-28 08:31:49 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-10-28 08:31:49 +0000 |
commit | c8e2953e01de65ce2baffe84d72366f6a6efebc1 (patch) | |
tree | 6a3c2f9380674fc01e1230cff33fef2382daacac /protocols/AimOscar/src | |
parent | 8934ae2caa8cdc2cc70baf0047a8812b0538963f (diff) |
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
Diffstat (limited to 'protocols/AimOscar/src')
-rw-r--r-- | protocols/AimOscar/src/services.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/AimOscar/src/services.cpp b/protocols/AimOscar/src/services.cpp index a4e6b7050f..c4be0f3401 100644 --- a/protocols/AimOscar/src/services.cpp +++ b/protocols/AimOscar/src/services.cpp @@ -112,8 +112,8 @@ int CAimProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) {
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
- if (mir_strcmp(cws->szModule, MOD_KEY_CL) == 0 && m_state == 1 && hContact) {
- if (mir_strcmp(cws->szSetting, AIM_KEY_NL) == 0) {
+ if (strcmp(cws->szModule, MOD_KEY_CL) == 0 && m_state == 1 && hContact) {
+ if (strcmp(cws->szSetting, AIM_KEY_NL) == 0) {
if (cws->value.type == DBVT_DELETED) {
DBVARIANT dbv;
if (!db_get_utf(hContact, MOD_KEY_CL, OTH_KEY_GP, &dbv) && dbv.pszVal[0]) {
@@ -124,7 +124,7 @@ int CAimProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) add_contact_to_group(hContact, AIM_DEFAULT_GROUP);
}
}
- else if (mir_strcmp(cws->szSetting, "MyHandle") == 0) {
+ else if (strcmp(cws->szSetting, "MyHandle") == 0) {
char *name;
switch (cws->value.type) {
case DBVT_DELETED:
|