Commit b3bcc3d8 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Fix build with GCC 12 (more standard attributes in middle of decl-specifiers)

"virtual Q_REQUIRED_RESULT foo bar()" -> "Q_REQUIRED_RESULT virtual foo bar()"

(cherry picked from commit ee41cef0)
parent e99d09fe
Pipeline #132478 skipped
......@@ -16,7 +16,7 @@ public:
void setText(const QString &str);
virtual Q_REQUIRED_RESULT QString toHtml() const = 0;
Q_REQUIRED_RESULT virtual QString toHtml() const = 0;
QString mText;
......@@ -44,11 +44,11 @@ public:
const AdBlockRule *enableRule(int offset);
const AdBlockRule *disableRule(int offset);
virtual Q_REQUIRED_RESULT bool canEditRules() const;
virtual Q_REQUIRED_RESULT bool canBeRemoved() const;
Q_REQUIRED_RESULT virtual bool canEditRules() const;
Q_REQUIRED_RESULT virtual bool canBeRemoved() const;
virtual Q_REQUIRED_RESULT int addRule(AdBlockRule *rule);
virtual Q_REQUIRED_RESULT bool removeRule(int offset);
Q_REQUIRED_RESULT virtual int addRule(AdBlockRule *rule);
Q_REQUIRED_RESULT virtual bool removeRule(int offset);
virtual const AdBlockRule *replaceRule(AdBlockRule *rule, int offset);
Q_REQUIRED_RESULT bool enabled() const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment