Merge pull request #107 from llyyr/fix-various-build

Fix various build issues
This commit is contained in:
Malte Jürgens 2023-02-18 14:23:29 +00:00 committed by GitHub
commit a9ddc0216f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -259,7 +259,7 @@ void DiscordPage::javaScriptConsoleMessage(
auto lines = segment.split("\n"); auto lines = segment.split("\n");
QString ansi; QString ansi;
uint endOfStyles = lines.length(); 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(";")) { if (!lines[line].endsWith(";")) {
endOfStyles = line; endOfStyles = line;
break; break;

View file

@ -4,6 +4,7 @@
#include <QApplication> #include <QApplication>
#include <QDebug> #include <QDebug>
#include <QMessageBox>
#include <QTimer> #include <QTimer>
#ifdef KXMLGUI #ifdef KXMLGUI

View file

@ -20,9 +20,9 @@
#ifdef KNOTIFICATIONS #ifdef KNOTIFICATIONS
#include <KNotification> #include <KNotification>
#include <KJob>
#endif #endif
#include <KJob>
class UserScript : public QObject { class UserScript : public QObject {
Q_OBJECT Q_OBJECT