diff src/services/anilist.cpp @ 65:26721c28bf22

*: avoid usage of (to|from)StdString in Qt5 (and probably Qt6 as well) these functions are only available (or even usable) if Qt and Minori were built with the *same standard headers*, which may not be the case in some circumstances. hence, we'll use our own conversion functions, which we probably should use anyway.
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 23:26:35 -0400
parents fe719c109dbc
children 6481c5aed3e1
line wrap: on
line diff
--- a/src/services/anilist.cpp	Sun Oct 01 23:15:43 2023 -0400
+++ b/src/services/anilist.cpp	Sun Oct 01 23:26:35 2023 -0400
@@ -322,7 +322,7 @@
 	    0, "Credentials needed!", "Please enter the code given to you after logging in to AniList:", QLineEdit::Normal,
 	    "", &ok);
 	if (ok && !token.isEmpty())
-		account.SetAuthToken(token.toStdString());
+		account.SetAuthToken(Strings::ToUtf8String(token));
 	else // fail
 		return false;
 	const std::string query = "query {\n"