Ticket #3803: filezilla-02-multimap-const.diff
File filezilla-02-multimap-const.diff, 828 bytes (added by , 16 years ago) |
---|
-
filezilla-3.1.3/src/engine/directorylisting.cpp
old new 409 409 for (; entry_iter != m_pEntries->end(); entry_iter++, i++) 410 410 { 411 411 const wxString& entry_name = entry_iter->GetEntry().name; 412 m_searchmap_case->insert(std::pair< wxString, unsigned int>(entry_name, i));412 m_searchmap_case->insert(std::pair<const wxString, unsigned int>(entry_name, i)); 413 413 414 414 if (entry_name == name) 415 415 return i; … … 439 439 { 440 440 wxString entry_name = entry_iter->GetEntry().name; 441 441 entry_name.MakeLower(); 442 m_searchmap_nocase->insert(std::pair< wxString, unsigned int>(entry_name, i));442 m_searchmap_nocase->insert(std::pair<const wxString, unsigned int>(entry_name, i)); 443 443 444 444 if (entry_name == name) 445 445 return i;