From: Vadim Zeitlin Date: Sun, 25 Sep 2005 16:19:02 +0000 (+0000) Subject: fixed two icc warnings about local variables hiding parameters X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a7bd38a77d46e5d45fa6bbff2331335cb38579c fixed two icc warnings about local variables hiding parameters git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 3793b7927a..c4425617ed 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -3692,12 +3692,12 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date) for ( size_t n = 0; n < WXSIZEOF(literalDates); n++ ) { - wxString date = wxGetTranslation(literalDates[n].str); - size_t len = date.length(); + const wxString dateStr = wxGetTranslation(literalDates[n].str); + size_t len = dateStr.length(); if ( wxStrlen(p) >= len ) { wxString str(p, len); - if ( str.CmpNoCase(date) == 0 ) + if ( str.CmpNoCase(dateStr) == 0 ) { // nothing can follow this, so stop here p += len; @@ -4322,8 +4322,8 @@ wxDateTimeHolidayAuthority::GetHolidaysInRange(const wxDateTime& dtStart, holidays.Clear(); - size_t count = ms_authorities.size(); - for ( size_t nAuth = 0; nAuth < count; nAuth++ ) + const size_t countAuth = ms_authorities.size(); + for ( size_t nAuth = 0; nAuth < countAuth; nAuth++ ) { ms_authorities[nAuth]->DoGetHolidaysInRange(dtStart, dtEnd, hol);