Commit ee41cef0 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()"
parent 8c6b124e
Pipeline #125098 passed with stage
in 14 minutes and 40 seconds
......@@ -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;
Markdown is supported
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