mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
wxLogCtrl: Use std::string with boost::icontains
This commit is contained in:
parent
d3a7b3b5a6
commit
dbca758a60
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ void wxLogCtrl::PushEntry(const wxString& filter, const wxString& message)
|
||||||
ListIt_t it = m_log_entries.back();
|
ListIt_t it = m_log_entries.back();
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
if(m_active_filter.empty() || filter == m_active_filter || (m_filter_messages && boost::icontains(message, m_active_filter)))
|
if(m_active_filter.empty() || filter == m_active_filter || (m_filter_messages && boost::icontains(std::string(message.mb_str()), m_active_filter)))
|
||||||
{
|
{
|
||||||
std::unique_lock active_lock(m_active_mutex);
|
std::unique_lock active_lock(m_active_mutex);
|
||||||
m_active_entries.emplace_back(std::cref(it));
|
m_active_entries.emplace_back(std::cref(it));
|
||||||
|
@ -149,7 +149,7 @@ void wxLogCtrl::UpdateActiveEntries()
|
||||||
{
|
{
|
||||||
for (const auto& it : m_log_entries)
|
for (const auto& it : m_log_entries)
|
||||||
{
|
{
|
||||||
if(it.first == m_active_filter || (m_filter_messages && boost::icontains(it.second, m_active_filter)) )
|
if(it.first == m_active_filter || (m_filter_messages && boost::icontains(std::string(it.second.mb_str()), m_active_filter)) )
|
||||||
m_active_entries.emplace_back(it);
|
m_active_entries.emplace_back(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue