diff --git a/utils/HelpGen/src/scriptbinder.cpp b/utils/HelpGen/src/scriptbinder.cpp index b9c79ba841..6559328e8d 100644 --- a/utils/HelpGen/src/scriptbinder.cpp +++ b/utils/HelpGen/src/scriptbinder.cpp @@ -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; } diff --git a/utils/HelpGen/src/scriptbinder.h b/utils/HelpGen/src/scriptbinder.h index 904cb3306b..145082967e 100644 --- a/utils/HelpGen/src/scriptbinder.h +++ b/utils/HelpGen/src/scriptbinder.h @@ -262,8 +262,8 @@ public: // to other sections (e.g. could be usefull for autoamically // hiding empty index-sections). - ScriptSection( const string& name = "", - const string& body = "", + ScriptSection( const wxString& name = wxEmptyString, + const wxString& body = wxEmptyString, ScriptTemplate* pSectionTemplate = NULL, ScriptTemplate* pReferenceTemplate = NULL, bool autoHide = false,