wxTitleManagerList: Remove usage of u8string

This commit is contained in:
OatmealDome 2022-09-01 15:38:55 -04:00
parent 21fb1c2cc3
commit 80b31a032e

View file

@ -200,10 +200,10 @@ boost::optional<wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTitleEnt
boost::optional<const wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTitleEntry(const fs::path& path) const boost::optional<const wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTitleEntry(const fs::path& path) const
{ {
const auto tmp = path.generic_u8string(); const auto tmp = _utf8Wrapper(path);
for (const auto& data : m_data) for (const auto& data : m_data)
{ {
if (boost::iequals(data->entry.path.generic_u8string(), tmp)) if (boost::iequals(_utf8Wrapper(data->entry.path), tmp))
return data->entry; return data->entry;
} }
@ -211,10 +211,10 @@ boost::optional<const wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTi
} }
boost::optional<wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTitleEntry(const fs::path& path) boost::optional<wxTitleManagerList::TitleEntry&> wxTitleManagerList::GetTitleEntry(const fs::path& path)
{ {
const auto tmp = path.generic_u8string(); const auto tmp = _utf8Wrapper(path);
for (const auto& data : m_data) for (const auto& data : m_data)
{ {
if (boost::iequals(data->entry.path.generic_u8string(), tmp)) if (boost::iequals(_utf8Wrapper(data->entry.path), tmp))
return data->entry; return data->entry;
} }