git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28422
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- strings.Sort(wxStringSortAscending);
+ strings.Sort(); // ascending sort
// Yes, this will be slow, but template lists
// are typically short.
int j;
// Yes, this will be slow, but template lists
// are typically short.
int j;
- strings.Sort(wxStringSortAscending);
+ strings.Sort(); // ascending sort
// Yes, this will be slow, but template lists
// are typically short.
int j;
// Yes, this will be slow, but template lists
// are typically short.
int j;
// Function which is called by quick sort. We want to override the default wxArrayString behaviour,
// and sort regardless of case.
// 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);
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
enu.EnumerateFacenames();
m_NormalFonts = new wxArrayString;
*m_NormalFonts = *enu.GetFacenames();
enu.EnumerateFacenames();
m_NormalFonts = new wxArrayString;
*m_NormalFonts = *enu.GetFacenames();
- m_NormalFonts->Sort(wxStringSortAscending);
+ m_NormalFonts->Sort(); // ascending sort
}
if (m_FixedFonts == NULL)
{
}
if (m_FixedFonts == NULL)
{
enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, true /*enum fixed width only*/);
m_FixedFonts = new wxArrayString;
*m_FixedFonts = *enu.GetFacenames();
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.
}
// VS: We want to show the font that is actually used by wxHtmlWindow.