From a2a03d7864c96401b99b3fde43ae7cb5ace83814 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 23 Jul 2004 14:33:01 +0000 Subject: [PATCH] wxUSE_STL/wxArrayString fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 4 ++-- src/generic/dirctrlg.cpp | 4 ++-- src/html/helpfrm.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 38dd2f9..6e5f249 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1613,7 +1613,7 @@ wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates, if (sort) { - strings.Sort(wxStringSortAscending); + strings.Sort(); // ascending sort // Yes, this will be slow, but template lists // are typically short. int j; @@ -1692,7 +1692,7 @@ wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates, if (sort) { - strings.Sort(wxStringSortAscending); + strings.Sort(); // ascending sort // Yes, this will be slow, but template lists // are typically short. int j; diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index f87cb7b..66ea7d8 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -407,9 +407,9 @@ bool wxIsDriveAvailable(const wxString& dirName) // Function which is called by quick sort. We want to override the default wxArrayString behaviour, // and sort regardless of case. -static int wxCMPFUNC_CONV wxDirCtrlStringCompareFunction(wxString* strFirst, wxString* strSecond) +static int wxCMPFUNC_CONV wxDirCtrlStringCompareFunction(const wxString& strFirst, const wxString& strSecond) { - return strFirst->CmpNoCase(*strSecond); + return strFirst.CmpNoCase(strSecond); } //----------------------------------------------------------------------------- diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 9b9c95f..51d1bba 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -1277,7 +1277,7 @@ void wxHtmlHelpFrame::OptionsDialog() enu.EnumerateFacenames(); m_NormalFonts = new wxArrayString; *m_NormalFonts = *enu.GetFacenames(); - m_NormalFonts->Sort(wxStringSortAscending); + m_NormalFonts->Sort(); // ascending sort } if (m_FixedFonts == NULL) { @@ -1285,7 +1285,7 @@ void wxHtmlHelpFrame::OptionsDialog() enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, true /*enum fixed width only*/); m_FixedFonts = new wxArrayString; *m_FixedFonts = *enu.GetFacenames(); - m_FixedFonts->Sort(wxStringSortAscending); + m_FixedFonts->Sort(); // ascending sort } // VS: We want to show the font that is actually used by wxHtmlWindow. -- 2.7.4