mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
DolphinWX: Remove the use of some wx 1.0 compatibility functions.
Uses the recommended replacements.
This commit is contained in:
@ -464,13 +464,13 @@ void FifoPlayerDlg::OnBeginSearch(wxCommandEvent& event)
|
||||
return;
|
||||
|
||||
// TODO: Limited to even str lengths...
|
||||
if (str_search_val.Length() && str_search_val.Length() % 2)
|
||||
if (!str_search_val.empty() && str_search_val.length() % 2)
|
||||
{
|
||||
m_numResultsText->SetLabel(_("Invalid search string (only even string lengths supported)"));
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned int const val_length = str_search_val.Length() / 2;
|
||||
unsigned int const val_length = str_search_val.length() / 2;
|
||||
std::vector<u8> search_val(val_length);
|
||||
for (unsigned int i = 0; i < val_length; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user