X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07d09af8cc3321f7ff4743b1a288aa17594a2cfe..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/common/cmdline.cpp diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 29399558f5..49f362bfa0 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_CMDLINE_PARSER + #ifndef WX_PRECOMP #include "wx/string.h" #include "wx/log.h" @@ -478,12 +480,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 +503,7 @@ int wxCmdLineParser::Parse() size_t countParam = m_data->m_paramDesc.GetCount(); - Reset(); + Reset(); // parse everything wxString arg; @@ -964,3 +965,5 @@ static wxString GetTypeName(wxCmdLineParamType type) return s; } + +#endif // wxUSE_CMDLINE_PARSER