Skip to content

Commit

Permalink
TagListPage: remove unnecessary c_str() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 2, 2024
1 parent 2483cf4 commit ca5e167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TagListPage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TagListPage::PaintListItem(const Window window, unsigned i,

if (i < values.size())
screen_browser_paint_directory(window, width, selected,
Utf8ToLocale(values[i].c_str()).c_str());
Utf8ToLocale{values[i]});
else
screen_browser_paint_directory(window, width, selected,
all_text);
Expand Down Expand Up @@ -180,7 +180,7 @@ add_query(struct mpdclient *c, const TagFilter &filter,
text = filter.empty() ? "?" : filter.front().second.c_str();

screen_status_fmt(_("Adding '{}' to queue"),
Utf8ToLocale(text).c_str());
(std::string_view)Utf8ToLocale{text});

mpd_search_add_db_songs(connection, true);
AddConstraints(connection, filter);
Expand Down

0 comments on commit ca5e167

Please sign in to comment.