X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bc17f14f4d232852063843e9e80953ff0919e78..aadb4d67c86fcb5af00804dc6dfb718d82078b2e:/utils/HelpGen/src/scriptbinder.cpp diff --git a/utils/HelpGen/src/scriptbinder.cpp b/utils/HelpGen/src/scriptbinder.cpp index f02e65ef81..6559328e8d 100644 --- a/utils/HelpGen/src/scriptbinder.cpp +++ b/utils/HelpGen/src/scriptbinder.cpp @@ -192,7 +192,7 @@ inline void ScriptTemplate::PrintVar( TVarInfo* pInfo, { char buf[128]; - switch ( pInfo->mType ) + switch ( pInfo->m_Type ) { case TVAR_INTEGER : { @@ -214,7 +214,7 @@ inline void ScriptTemplate::PrintVar( TVarInfo* pInfo, cout << "DBG:: pInfo->mOfs value is " << (int)pInfo->mOfs << endl; cout << "DBG:: d+pInfo->mOfs is " << (int)((char*)dataObj + pInfo->mOfs) << endl; cout << "DBG:: pInfo->m_Name is " << pInfo->m_Name << endl; - cout << "DBG:: pInfo->mType is " << pInfo->mType << endl; + cout << "DBG:: pInfo->m_Type is " << pInfo->m_Type << endl; cout << "DBG:: end of dump. " << endl; cout << "DBG:: cs value is " << endl << cs << endl; @@ -319,8 +319,8 @@ void ScriptTemplate::PrintScript( void* dataObj, ScriptStream& stm ) int ScriptSection::mIdCounter = 0; -ScriptSection::ScriptSection( const string& name, - const string& body, +ScriptSection::ScriptSection( const wxString& name, + const wxString& body, ScriptTemplate* pSectionTemplate, ScriptTemplate* pReferenceTemplate, bool autoHide, @@ -342,8 +342,8 @@ ScriptSection::ScriptSection( const string& name, { // generate GUID - char buf[32]; - sprintf( buf, "%d", ++mIdCounter ); + wxChar buf[32]; + wxSprintf( buf, _T("%d"), ++mIdCounter ); mId = buf; }