mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
DolphinWX: Remove the use of some wx 1.0 compatibility functions.
Uses the recommended replacements.
This commit is contained in:
parent
16582a0459
commit
5c57a1ef4b
4 changed files with 16 additions and 13 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue