diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
commit | 0c4dc97b703e93e2503c9cabedaa6c42984d0f00 (patch) | |
tree | f1a46a67fe7bb62ed8556d0a0a8cecb65baddea3 /plugins/Clist_modern/src/modern_clcpaint.cpp | |
parent | 9f0105daab3c080213ebb30d3a6449bb3d77e37f (diff) |
- we don't drop data cache upon the embedded clists rebuild;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16862 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcpaint.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcpaint.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp index 4c74ef50f0..a2e9ff2165 100644 --- a/plugins/Clist_modern/src/modern_clcpaint.cpp +++ b/plugins/Clist_modern/src/modern_clcpaint.cpp @@ -2289,8 +2289,7 @@ void CLCPaint::_CalcItemsPos(HDC hdcMem, ClcData *dat, ClcContact *Drawing, RECT // Get contact time
TCHAR buf[70] = _T("");
TimeZone_PrintDateTime(pdnce->hTimeZone, _T("t"), buf, _countof(buf), 0);
- mir_free(pdnce->szSecondLineText);
- pdnce->szSecondLineText = mir_tstrdup(buf);
+ replaceStrT(pdnce->szSecondLineText, buf);
}
if (pdnce->szSecondLineText && pdnce->szSecondLineText[0] && free_height > dat->secondLine.top_space) {
@@ -2323,8 +2322,7 @@ void CLCPaint::_CalcItemsPos(HDC hdcMem, ClcData *dat, ClcContact *Drawing, RECT // Get contact time
TCHAR buf[70] = _T("");
TimeZone_PrintDateTime(pdnce->hTimeZone, _T("t"), buf, _countof(buf), 0);
- mir_free(pdnce->szThirdLineText);
- pdnce->szThirdLineText = mir_tstrdup(buf);
+ replaceStrT(pdnce->szThirdLineText, buf);
}
if (pdnce->szThirdLineText != NULL && pdnce->szThirdLineText[0] && free_height > dat->thirdLine.top_space) {
ChangeToFont(hdcMem, dat, FONTID_THIRDLINE, NULL);
|