Mercurial > minori
changeset 92:2c27582a177c
pages/now_playing: fix invalid catch
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 00:00:56 -0400 |
parents | 29e2840d9b7b |
children | d5efb81540b3 |
files | src/gui/pages/now_playing.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui/pages/now_playing.cc Tue Oct 31 23:56:10 2023 -0400 +++ b/src/gui/pages/now_playing.cc Wed Nov 01 00:00:56 2023 -0400 @@ -94,7 +94,7 @@ _id = anime.GetId(); try { _episode = std::stoi(info.at("episode")); - } catch (std::invalid_argument) { + } catch (std::invalid_argument const&) { _episode = 0; } _title->SetText(Strings::ToQString(anime.GetUserPreferredTitle()));