wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates,
int noTemplates)
{
- const wxChar **strings = new wxChar *[noTemplates];
+ wxChar **strings = new wxChar *[noTemplates];
wxChar **data = new wxChar *[noTemplates];
int i;
int n = 0;
{
if (templates[i]->IsVisible())
{
- strings[n] = templates[i]->m_description;
+ strings[n] = (wxChar *)templates[i]->m_description.c_str();
data[n] = (wxChar *)templates[i];
n ++;
}
wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates,
int noTemplates)
{
- const wxChar **strings = new wxChar *[noTemplates];
+ wxChar **strings = new wxChar *[noTemplates];
wxChar **data = new wxChar *[noTemplates];
int i;
int n = 0;
{
if (templates[i]->IsVisible() && (templates[i]->GetViewName() != T("")))
{
- strings[n] = templates[i]->m_viewTypeName;
+ strings[n] = (wxChar *)templates[i]->m_viewTypeName.c_str();
data[n] = (wxChar *)templates[i];
n ++;
}