aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/LocalAnime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp
index e5c8e81..8ab9454 100644
--- a/src/plugins/LocalAnime.cpp
+++ b/src/plugins/LocalAnime.cpp
@@ -48,10 +48,10 @@ namespace QuickMedia {
static std::string_view anime_item_get_filename(const LocalAnimeItem &item) {
if(std::holds_alternative<LocalAnime>(item)) {
const LocalAnime &anime = std::get<LocalAnime>(item);
- return anime.name.c_str();
+ return anime.name;
} else if(std::holds_alternative<LocalAnimeSeason>(item)) {
const LocalAnimeSeason &season = std::get<LocalAnimeSeason>(item);
- return season.name.c_str();
+ return season.name;
} else if(std::holds_alternative<LocalAnimeEpisode>(item)) {
const LocalAnimeEpisode &episode = std::get<LocalAnimeEpisode>(item);
return episode.path.filename();