Commit e99d09fe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

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

parent 21be248b
Pipeline #125068 passed with stage
in 10 minutes
......@@ -39,8 +39,8 @@ public:
void load(const KConfigGroup &group);
Q_REQUIRED_RESULT bool isValid() const;
static Q_REQUIRED_RESULT QString ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r);
static Q_REQUIRED_RESULT ConfirmBeforeDeletingRule::RuleType stringToRuleType(const QString &str);
Q_REQUIRED_RESULT static QString ruleTypeToString(ConfirmBeforeDeletingRule::RuleType r);
Q_REQUIRED_RESULT static ConfirmBeforeDeletingRule::RuleType stringToRuleType(const QString &str);
Q_REQUIRED_RESULT bool operator==(const ConfirmBeforeDeletingRule &other) const;
......
......@@ -27,7 +27,7 @@ public:
bool handleContextMenuRequest(MimeTreeParser::Interface::BodyPart *part, const QString &path, const QPoint &p) const override;
QString statusBarMessage(MimeTreeParser::Interface::BodyPart *part, const QString &path) const override;
static Q_REQUIRED_RESULT bool hasItineraryApp();
Q_REQUIRED_RESULT static bool hasItineraryApp();
private:
ItineraryMemento *memento(MimeTreeParser::Interface::BodyPart *part) const;
......
......@@ -28,7 +28,7 @@ public:
Q_REQUIRED_RESULT KCalendarCore::Incidence::Ptr incidence() const;
Q_REQUIRED_RESULT QVector<CalendarEvents::EventData> eventData() const;
static Q_REQUIRED_RESULT QStringList allTestData();
Q_REQUIRED_RESULT static QStringList allTestData();
private:
void parse();
......
......@@ -24,8 +24,8 @@ public:
static QMap<QString, QString> listSubscriptions();
static Q_REQUIRED_RESULT QString localFilterPath();
static Q_REQUIRED_RESULT QString filterCharsFromFilename(const QString &name);
static Q_REQUIRED_RESULT QString ensureUniqueFilename(const QString &name, const QString &appendFormat = QStringLiteral("(%1)"));
Q_REQUIRED_RESULT static QString localFilterPath();
Q_REQUIRED_RESULT static QString filterCharsFromFilename(const QString &name);
Q_REQUIRED_RESULT static QString ensureUniqueFilename(const QString &name, const QString &appendFormat = QStringLiteral("(%1)"));
};
}
......@@ -40,8 +40,8 @@ public:
void setAdblockResult(const QVector<AdBlock::AdBlockResult> &result);
void saveFilters();
static Q_REQUIRED_RESULT QString elementType(AdBlockBlockableItemsWidget::TypeElement type);
static Q_REQUIRED_RESULT QString elementTypeToI18n(AdBlockBlockableItemsWidget::TypeElement type);
Q_REQUIRED_RESULT static QString elementType(AdBlockBlockableItemsWidget::TypeElement type);
Q_REQUIRED_RESULT static QString elementTypeToI18n(AdBlockBlockableItemsWidget::TypeElement type);
private:
void slotCustomContextMenuRequested(const QPoint &);
......
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