From 26a2ca7b0573e9cafdbe9344d8a602c8ba57e4bc Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 18 Feb 2023 08:40:19 +0530 Subject: [PATCH 1/3] add missing include --- src/userscript.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/userscript.cpp b/src/userscript.cpp index b8a6171..7b06aa7 100644 --- a/src/userscript.cpp +++ b/src/userscript.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #ifdef KXMLGUI From 335a4456ed204146cce7408bac31623b8f29d860 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 18 Feb 2023 08:41:17 +0530 Subject: [PATCH 2/3] KJob is part of Kf5Notifications and optional --- src/userscript.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userscript.h b/src/userscript.h index 8464b3a..8253b8e 100644 --- a/src/userscript.h +++ b/src/userscript.h @@ -20,9 +20,9 @@ #ifdef KNOTIFICATIONS #include +#include #endif -#include class UserScript : public QObject { Q_OBJECT From 331fb8f4ca1506715fa46563f6d7869016063c24 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 18 Feb 2023 08:42:09 +0530 Subject: [PATCH 3/3] fix comparison of different signedness --- src/discordpage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discordpage.cpp b/src/discordpage.cpp index 028b399..f9340cd 100644 --- a/src/discordpage.cpp +++ b/src/discordpage.cpp @@ -259,7 +259,7 @@ void DiscordPage::javaScriptConsoleMessage( auto lines = segment.split("\n"); QString ansi; uint endOfStyles = lines.length(); - for (size_t line = 1; line < lines.length(); line++) { + for (auto line = 1; line < lines.length(); line++) { if (!lines[line].endsWith(";")) { endOfStyles = line; break;