summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-28 10:35:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-28 10:35:19 +0000
commit5f03619d3bbda7a617f50ded2698cffc434dd525 (patch)
tree9b08604d73eed50cd39b5836d30ffb869bb86960 /plugins/UserInfoEx/src/dlg_anniversarylist.cpp
parent708d6c1bde9ccf83eaa1b81ea73bf40881172e40 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4224 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/dlg_anniversarylist.cpp')
-rw-r--r--plugins/UserInfoEx/src/dlg_anniversarylist.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
index ba8414a843..6c031103a8 100644
--- a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
+++ b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
@@ -855,21 +855,15 @@ class CAnnivList
numBirthContacts++;
// add birthday
- if ((_filter.bFilterIndex != FILTER_ANNIV) && (!_filter.pszProto || !strcmpi(pszProto, _filter.pszProto))) {
+ if ((_filter.bFilterIndex != FILTER_ANNIV) && (!_filter.pszProto || !_strcmpi(pszProto, _filter.pszProto)))
AddRow(hContact, pszProto, ad, mtNow, wDaysBefore);
- }
}
// add anniversaries
- if ( _filter.bFilterIndex != FILTER_BIRTHDAY &&
- (!_filter.pszProto || !strcmpi(pszProto, _filter.pszProto)))
- {
- for (i = 0; !ad.DBGetAnniversaryDate(hContact, i); i++) {
- if (!_filter.pszAnniv || !_tcsicmp(_filter.pszAnniv, ad.Description())) {
+ if (_filter.bFilterIndex != FILTER_BIRTHDAY && (!_filter.pszProto || !_strcmpi(pszProto, _filter.pszProto)))
+ for (i = 0; !ad.DBGetAnniversaryDate(hContact, i); i++)
+ if (!_filter.pszAnniv || !_tcsicmp(_filter.pszAnniv, ad.Description()))
AddRow(hContact, pszProto, ad, mtNow, wDaysBefore);
- }
- }
- }
}
}
}