X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02718e6af40552cb8ac97a8af70370698617386b..77d4384e31b10791b3b074b9874c73f5df004556:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index a49ef09a9b..02fdca8fe4 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1435,9 +1435,9 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates, } wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates, - int noTemplates) + int noTemplates, bool sort) { - wxArrayString strings; + wxArrayString strings(sort); wxDocTemplate **data = new wxDocTemplate *[noTemplates]; int i; int n = 0; @@ -1483,9 +1483,9 @@ wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates, } wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates, - int noTemplates) + int noTemplates, bool sort) { - wxArrayString strings; + wxArrayString strings(sort); wxDocTemplate **data = new wxDocTemplate *[noTemplates]; int i; int n = 0;