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,
{
// generate GUID
- char buf[32];
- sprintf( buf, "%d", ++mIdCounter );
+ wxChar buf[32];
+ wxSprintf( buf, _T("%d"), ++mIdCounter );
mId = buf;
}
// 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,