X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07d09af8cc3321f7ff4743b1a288aa17594a2cfe..d0af5538d676fdc5f7620233ee24f43832b80bff:/src/common/cmdline.cpp diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 29399558f5..3d8401f815 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -478,12 +478,11 @@ wxString wxCmdLineParser::GetParam(size_t n) const // Resets switches and options void wxCmdLineParser::Reset() { - unsigned int i; - for (i = 0; i < m_data->m_options.Count(); i++) - { - wxCmdLineOption& opt = m_data->m_options[(size_t)i]; - opt.SetHasValue(FALSE); - } + for ( size_t i = 0; i < m_data->m_options.Count(); i++ ) + { + wxCmdLineOption& opt = m_data->m_options[i]; + opt.SetHasValue(FALSE); + } } @@ -502,7 +501,7 @@ int wxCmdLineParser::Parse() size_t countParam = m_data->m_paramDesc.GetCount(); - Reset(); + Reset(); // parse everything wxString arg;