Correct definition of sorting function.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -290,9 +290,9 @@ static void BuildListFromNN(wxArrayString& list, NETRESOURCE* pResSrc,
|
|||||||
// Function: CompareFcn
|
// Function: CompareFcn
|
||||||
// Purpose: Used to sort the NN list alphabetically, case insensitive.
|
// Purpose: Used to sort the NN list alphabetically, case insensitive.
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
static int CompareFcn(wxString* first, wxString* second)
|
static int CompareFcn(const wxString& first, const wxString& second)
|
||||||
{
|
{
|
||||||
return wxStricmp(first->c_str(), second->c_str());
|
return wxStricmp(first.c_str(), second.c_str());
|
||||||
} // CompareFcn
|
} // CompareFcn
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Reference in New Issue
Block a user