Commit 8e063ba9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent d26ca81b
......@@ -64,7 +64,7 @@ private Q_SLOTS:
void slotGravatarResolvUrlFinished(Gravatar::GravatarResolvUrlJob *);
private:
bool searchPhoto(const KContacts::AddresseeList &list);
Q_REQUIRED_RESULT bool searchPhoto(const KContacts::AddresseeList &list);
KContacts::Picture mPhoto;
QPixmap mGravatarPixmap;
QImage mImageFromUrl;
......
......@@ -56,7 +56,7 @@ public:
Q_REQUIRED_RESULT QString toHtml(const QStringList &displayExtraHeaders, const QString &absolutPath, const QString &filename, const MessageViewer::HeaderStyle *style, KMime::Message *message, bool isPrinting) const;
private:
QString format(const QString &absolutePath, const Grantlee::Template &headerTemplate, const QStringList &displayExtraHeaders, bool isPrinting, const MessageViewer::HeaderStyle *style, KMime::Message *message, bool showEmoticons = true) const;
Q_REQUIRED_RESULT QString format(const QString &absolutePath, const Grantlee::Template &headerTemplate, const QStringList &displayExtraHeaders, bool isPrinting, const MessageViewer::HeaderStyle *style, KMime::Message *message, bool showEmoticons = true) const;
class Private;
Private *const d;
};
......
......@@ -86,8 +86,8 @@ public:
Q_REQUIRED_RESULT xfaceSettings xface(const HeaderStyle *style, KMime::Message *message) const;
private:
void updateXFaceSettings(QImage photo, xfaceSettings &settings) const;
QString drawSpamMeter(SpamError spamError, double percent, double confidence, const QString &filterHeader, const QString &confidenceHeader) const;
QString imgToDataUrl(const QImage &image) const;
Q_REQUIRED_RESULT QString drawSpamMeter(SpamError spamError, double percent, double confidence, const QString &filterHeader, const QString &confidenceHeader) const;
Q_REQUIRED_RESULT QString imgToDataUrl(const QImage &image) const;
};
}
......
......@@ -45,23 +45,23 @@ public:
virtual HeaderStyle *headerStyle() const = 0;
virtual HeaderStrategy *headerStrategy() const = 0;
virtual HeaderStyleInterface *createView(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac, QObject *parent = nullptr) = 0;
virtual QString name() const = 0;
virtual bool hasMargin() const;
virtual QString alignment() const;
virtual int elidedTextSize() const;
virtual Q_REQUIRED_RESULT QString name() const = 0;
virtual Q_REQUIRED_RESULT bool hasMargin() const;
virtual Q_REQUIRED_RESULT QString alignment() const;
virtual Q_REQUIRED_RESULT int elidedTextSize() const;
void setIsEnabled(bool enabled);
bool isEnabled() const;
Q_REQUIRED_RESULT bool isEnabled() const;
virtual QString attachmentHtml() const;
virtual Q_REQUIRED_RESULT QString attachmentHtml() const;
virtual bool hasConfigureDialog() const;
virtual Q_REQUIRED_RESULT bool hasConfigureDialog() const;
virtual void showConfigureDialog(QWidget *parent);
virtual Q_REQUIRED_RESULT void showConfigureDialog(QWidget *parent);
virtual QString extraScreenCss(const QString &headerFont) const;
virtual QString extraPrintCss(const QString &headerFont) const;
virtual QString extraCommonCss(const QString &headerFont) const;
virtual Q_REQUIRED_RESULT QString extraScreenCss(const QString &headerFont) const;
virtual Q_REQUIRED_RESULT QString extraPrintCss(const QString &headerFont) const;
virtual Q_REQUIRED_RESULT QString extraCommonCss(const QString &headerFont) const;
private:
HeaderStylePluginPrivate *const d;
......
......@@ -556,13 +556,13 @@ private:
void RevPush(const Prob *p);
void BigPush(Prob *p);
int BigPop(const Prob *p);
Q_REQUIRED_RESULT int BigPop(const Prob *p);
void BigDiv(unsigned char a, unsigned char *r);
void BigMul(unsigned char a);
void BigAdd(unsigned char a);
void BigClear();
QByteArray WriteFace();
Q_REQUIRED_RESULT QByteArray WriteFace();
void UnCompAll(char *fbuf);
void UnCompress(char *f, int wid, int hei, int lev);
void BigWrite(char *fbuf);
......@@ -574,9 +574,9 @@ private:
void PopGreys(char *f, int wid, int hei);
void CompAll(char *fbuf);
void Compress(char *f, int wid, int hei, int lev);
int AllWhite(char *f, int wid, int hei);
int AllBlack(char *f, int wid, int hei);
int Same(char *f, int wid, int hei);
Q_REQUIRED_RESULT int AllWhite(char *f, int wid, int hei);
Q_REQUIRED_RESULT int AllBlack(char *f, int wid, int hei);
Q_REQUIRED_RESULT int Same(char *f, int wid, int hei);
void PushGreys(char *f, int wid, int hei);
};
}
......
......@@ -43,10 +43,10 @@ public:
virtual ~HTMLBlock();
Q_REQUIRED_RESULT QString enter();
Q_REQUIRED_RESULT QString exit();
Q_REQUIRED_RESULT Q_REQUIRED_RESULT QString enter();
Q_REQUIRED_RESULT Q_REQUIRED_RESULT QString exit();
protected:
QString dir() const;
Q_REQUIRED_RESULT QString dir() const;
virtual QString enterString() const = 0;
virtual QString exitString() const = 0;
......
......@@ -38,7 +38,7 @@ public:
virtual void loadSettings() = 0;
virtual void saveSettings() = 0;
virtual void resetSettings() = 0;
virtual QString helpAnchor() const;
virtual Q_REQUIRED_RESULT QString helpAnchor() const;
Q_SIGNALS:
void configureChanged();
};
......
......@@ -70,7 +70,7 @@ public:
void setLinkHovered(const QUrl &url);
void setViewer(MessageViewer::ViewerPrivate *viewer);
bool execPrintPreviewPage(QPrinter *printer, int timeout);
Q_REQUIRED_RESULT bool execPrintPreviewPage(QPrinter *printer, int timeout);
void readConfig();
public Q_SLOTS:
void slotZoomChanged(qreal zoom);
......
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