From 80b31a032e42a7ddb4511c75431a1d7160e7b82a Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 1 Sep 2022 15:38:55 -0400 Subject: [PATCH] wxTitleManagerList: Remove usage of u8string --- src/gui/components/wxTitleManagerList.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/components/wxTitleManagerList.cpp b/src/gui/components/wxTitleManagerList.cpp index 37025083..a8ab2001 100644 --- a/src/gui/components/wxTitleManagerList.cpp +++ b/src/gui/components/wxTitleManagerList.cpp @@ -200,10 +200,10 @@ boost::optional wxTitleManagerList::GetTitleEnt boost::optional wxTitleManagerList::GetTitleEntry(const fs::path& path) const { - const auto tmp = path.generic_u8string(); + const auto tmp = _utf8Wrapper(path); 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; } @@ -211,10 +211,10 @@ boost::optional wxTitleManagerList::GetTi } boost::optional wxTitleManagerList::GetTitleEntry(const fs::path& path) { - const auto tmp = path.generic_u8string(); + const auto tmp = _utf8Wrapper(path); 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; } @@ -1280,4 +1280,4 @@ void wxTitleManagerList::ClearItems() void wxTitleManagerList::AutosizeColumns() { wxAutosizeColumns(this, ColumnTitleId, ColumnMAX - 1); -} \ No newline at end of file +}