added a wxCHECK(index is correct) to GetParam() (fix for patch #510614)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
626af8005c
commit
8c9892c2a8
@ -460,6 +460,8 @@ size_t wxCmdLineParser::GetParamCount() const
|
||||
|
||||
wxString wxCmdLineParser::GetParam(size_t n) const
|
||||
{
|
||||
wxCHECK_MSG( n < GetParamCount(), wxEmptyString, _T("invalid param index") );
|
||||
|
||||
return m_data->m_parameters[n];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user