Mercurial > minori
diff src/services/anilist.cc @ 211:7cf53145de11
strings: use templates for ToInt, std::to_string -> Strings::ToUtf8String
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Jan 2024 09:54:17 -0500 |
parents | 9613d72b097e |
children | d030b30526d5 |
line wrap: on
line diff
--- a/src/services/anilist.cc Tue Jan 02 02:37:03 2024 -0500 +++ b/src/services/anilist.cc Sun Jan 07 09:54:17 2024 -0500 @@ -308,7 +308,7 @@ bool AuthorizeUser() { /* Prompt for PIN */ QDesktopServices::openUrl( - QUrl(Strings::ToQString("https://anilist.co/api/v2/oauth/authorize?client_id=" + std::to_string(CLIENT_ID) + "&response_type=token"))); + QUrl(Strings::ToQString("https://anilist.co/api/v2/oauth/authorize?client_id=" + Strings::ToUtf8String(CLIENT_ID) + "&response_type=token"))); bool ok; QString token = QInputDialog::getText(