- string rettype = string( start, size_t( cur-start ) );
- rettype.Replace("WXDLLEXPORT ", ""); // FIXME just for now...
- pOp->mRetType = rettype;
+ wxString rettype = wxString( start, size_t( cur-start ) );
+ // FIXME just for now...
+ wxString::size_type pos = 0;
+ wxString toerase("WXDLLEXPORT ");
+ while((pos = rettype.find(toerase, pos)) != wxString::npos)
+ rettype.erase(pos, toerase.length());
+ pOp->m_RetType = rettype;