mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
UI: replace std::string with wxString in ChangeListFilter
This commit is contained in:
parent
70a27bb5a1
commit
d94cf17e88
@ -141,9 +141,9 @@ void SymbolListCtrl::OnRightClick(wxListEvent& event)
|
||||
#endif
|
||||
}
|
||||
|
||||
void SymbolListCtrl::ChangeListFilter(std::string filter)
|
||||
void SymbolListCtrl::ChangeListFilter(wxString filter)
|
||||
{
|
||||
m_list_filter = wxString(filter).MakeLower();
|
||||
m_list_filter = filter.MakeLower();
|
||||
|
||||
size_t visible_entries = m_data.size();
|
||||
for (auto& [address, symbol] : m_data)
|
||||
|
||||
@ -8,8 +8,9 @@ public:
|
||||
SymbolListCtrl(wxWindow* parent, const wxWindowID& id, const wxPoint& pos, const wxSize& size);
|
||||
void OnGameLoaded();
|
||||
|
||||
void ChangeListFilter(std::string filter);
|
||||
private:
|
||||
void ChangeListFilter(wxString filter);
|
||||
|
||||
private:
|
||||
struct SymbolItem {
|
||||
SymbolItem() = default;
|
||||
SymbolItem(wxString name, wxString libName, wxString searchName, bool visible) : name(name), libName(libName), searchName(searchName), visible(visible) {}
|
||||
|
||||
@ -48,5 +48,5 @@ void SymbolWindow::OnGameLoaded()
|
||||
|
||||
void SymbolWindow::OnFilterChanged(wxCommandEvent& event)
|
||||
{
|
||||
m_symbol_ctrl->ChangeListFilter(m_filter->GetValue().ToStdString());
|
||||
m_symbol_ctrl->ChangeListFilter(m_filter->GetValue());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user