GameList: Use string_view for GetEntryForPath()

This commit is contained in:
Stenzek
2024-05-18 13:26:15 +10:00
parent 23598e6a42
commit 073ac87be2
4 changed files with 18 additions and 16 deletions

View File

@ -140,7 +140,7 @@ void GameSummaryWidget::populateUi(const std::string& path, const std::string& s
{
auto lock = GameList::GetLock();
const GameList::Entry* gentry = GameList::GetEntryForPath(path.c_str());
const GameList::Entry* gentry = GameList::GetEntryForPath(path);
if (gentry)
m_ui.entryType->setCurrentIndex(static_cast<int>(gentry->type));
}