Commit 5b46bd0d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more Q_REQUIRED_RESULT

parent abf6ef5b
Pipeline #174231 passed with stage
in 7 minutes and 45 seconds
......@@ -14,12 +14,12 @@ class HighestModSeqAttribute : public Akonadi::Attribute
public:
explicit HighestModSeqAttribute(qint64 highestModSequence = -1);
void setHighestModSeq(qint64 highestModSequence);
qint64 highestModSequence() const;
Q_REQUIRED_RESULT qint64 highestModSequence() const;
void deserialize(const QByteArray &data) override;
QByteArray serialized() const override;
Q_REQUIRED_RESULT QByteArray serialized() const override;
Akonadi::Attribute *clone() const override;
QByteArray type() const override;
Q_REQUIRED_RESULT QByteArray type() const override;
private:
qint64 m_highestModSeq;
......
......@@ -14,7 +14,7 @@ public:
explicit NoInferiorsAttribute(bool noInferiors = false);
void setNoInferiors(bool noInferiors);
Q_REQUIRED_RESULT bool noInferiors() const;
QByteArray type() const override;
Q_REQUIRED_RESULT QByteArray type() const override;
Attribute *clone() const override;
Q_REQUIRED_RESULT QByteArray serialized() const override;
void deserialize(const QByteArray &data) override;
......
......@@ -58,11 +58,11 @@ public:
void setClientId(const QByteArray &clientId);
bool isConnected() const;
Q_REQUIRED_RESULT bool isConnected() const;
bool connect(ImapAccount *account);
void disconnect(SessionTermination termination = LogoutSession);
qint64 requestSession();
Q_REQUIRED_RESULT qint64 requestSession();
void cancelSessionRequest(qint64 id);
void releaseSession(KIMAP::Session *session);
......
......@@ -47,14 +47,14 @@ public:
* @param parentResource The resource this dialog belongs to
* @param parent Parent WId
*/
SetupServer(ImapResourceBase *parentResource, WId parent);
explicit SetupServer(ImapResourceBase *parentResource, WId parent);
/**
* Destructor
*/
~SetupServer() override;
bool shouldClearCache() const;
Q_REQUIRED_RESULT bool shouldClearCache() const;
private Q_SLOTS:
/**
......
......@@ -59,13 +59,13 @@ SubscriptionDialog::SubscriptionDialog(QWidget *parent, SubscriptionDialog::Subs
topLayout->addWidget(mainWidget);
topLayout->addWidget(buttonBox);
m_enableSubscription = new QCheckBox(i18nc("@option:check", "Enable server-side subscriptions"));
m_enableSubscription = new QCheckBox(i18nc("@option:check", "Enable server-side subscriptions"), mainWidget);
mainLayout->addWidget(m_enableSubscription);
auto filterBarLayout = new QHBoxLayout;
mainLayout->addLayout(filterBarLayout);
filterBarLayout->addWidget(new QLabel(i18nc("@label search for a subscription", "Search:")));
filterBarLayout->addWidget(new QLabel(i18nc("@label search for a subscription", "Search:"), mainWidget));
m_lineEdit = new QLineEdit(mainWidget);
m_lineEdit->setClearButtonEnabled(true);
......
......@@ -60,9 +60,9 @@ public:
~SubscriptionDialog() override;
void connectAccount(const ImapAccount &account, const QString &password);
bool isSubscriptionChanged() const;
Q_REQUIRED_RESULT bool isSubscriptionChanged() const;
void setSubscriptionEnabled(bool enabled);
bool subscriptionEnabled() const;
Q_REQUIRED_RESULT bool subscriptionEnabled() const;
private Q_SLOTS:
void onLoginDone(KJob *job);
......
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