Code: Select all
int GetGrvIntrTime(wxString &lpsz)
{
...
}
wxString sz;
p = GetGrvIntrTime(sz.Clone());
I got this error message
Code: Select all
error: invalid initialization of non-const reference of type ‘wxString&’ from an rvalue of type ‘wxString’