From ffed014ccd5370a5073594d55dd0dc88080e0b3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 18 Jan 2015 18:55:32 +0000 Subject: contacts cache details to be completely hidden from the outside world git-svn-id: http://svn.miranda-ng.org/main/trunk@11873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/contactcache.cpp | 2 +- plugins/TabSRMM/src/utils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 65e1fedcd4..f7240bbf3c 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -33,7 +33,7 @@ static OBJLIST arContacts(50, NumericKeySortT); -static DBCachedContact ccInvalid = { 0 }; +static DBCachedContact ccInvalid; CContactCache::CContactCache(const MCONTACT hContact) { diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index 62ab6d02e7..d0c06d7821 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -147,11 +147,11 @@ search_again: } } if (!clr_found) { - size_t c_closing = colorname.find_first_of(_T("]"), 0); + size_t c_closing = colorname.find_first_of(_T("]"), 0); if (c_closing == colorname.npos) c_closing = colorname.length(); const TCHAR *wszColname = colorname.c_str(); - if (endmark != message.npos && c_closing > 2 && c_closing <= 6 && iswalnum(colorname[0]) && iswalnum(colorname[c_closing -1])) { + if (endmark != message.npos && c_closing > 2 && c_closing <= 6 && iswalnum(colorname[0]) && iswalnum(colorname[c_closing - 1])) { RTF_ColorAdd(wszColname, c_closing); if (!was_added) { clr_was_added = was_added = true; -- cgit v1.2.3