From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TooltipNotify/src/Utils.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/TooltipNotify/src/Utils.cpp') diff --git a/plugins/TooltipNotify/src/Utils.cpp b/plugins/TooltipNotify/src/Utils.cpp index ce73dbc59b..67b9b670b6 100644 --- a/plugins/TooltipNotify/src/Utils.cpp +++ b/plugins/TooltipNotify/src/Utils.cpp @@ -14,19 +14,16 @@ BOOL IsNt50() return (bMajorVer>=5 && bMinorVer>=0); } -void TruncateWithDots(TCHAR* szString, int iNewLen) +void TruncateWithDots(TCHAR* szString, size_t iNewLen) { assert(iNewLen >= 0); - int iOrigLen = _tcslen(szString); - if (iNewLen < iOrigLen) - { + size_t iOrigLen = _tcslen(szString); + if (iNewLen < iOrigLen) { TCHAR* p = szString+iNewLen; *p = _T('\0'); for(int i=0; --p>=szString && i<3; i++) - { *p = _T('.'); - } } } -- cgit v1.2.3