Commit 2a2c293f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent fd2100d4
......@@ -67,8 +67,8 @@ public:
~AttachmentMarkBlock() override;
protected:
QString enterString() const override;
QString exitString() const override;
Q_REQUIRED_RESULT QString enterString() const override;
Q_REQUIRED_RESULT QString exitString() const override;
private:
void internalEnter();
......
......@@ -48,8 +48,8 @@ public:
~MessagePartRendererManager();
static MessagePartRendererManager *self();
Grantlee::Template loadByName(const QString &name);
Grantlee::Context createContext();
Q_REQUIRED_RESULT Grantlee::Template loadByName(const QString &name);
Q_REQUIRED_RESULT Grantlee::Context createContext();
private:
void initializeRenderer();
GrantleeTheme::Engine *m_engine = nullptr;
......
......@@ -39,7 +39,7 @@ public:
explicit ScamCheckShortUrl(QObject *parent = nullptr);
~ScamCheckShortUrl();
static bool isShortUrl(const QUrl &url);
static Q_REQUIRED_RESULT bool isShortUrl(const QUrl &url);
void expandedUrl(const QUrl &url);
......
......@@ -60,12 +60,12 @@ public:
* @param parentWidget the parent widget of this EditorWatcher, which will be used as the parent
* widget for message dialogs.
*/
EditorWatcher(const QUrl &url, const QString &mimeType, OpenWithOption option, QObject *parent, QWidget *parentWidget);
explicit EditorWatcher(const QUrl &url, const QString &mimeType, OpenWithOption option, QObject *parent, QWidget *parentWidget);
~EditorWatcher();
ErrorEditorWatcher start();
Q_REQUIRED_RESULT ErrorEditorWatcher start();
Q_REQUIRED_RESULT bool fileChanged() const;
QUrl url() const;
Q_REQUIRED_RESULT QUrl url() const;
Q_SIGNALS:
void editDone(MessageViewer::EditorWatcher *watcher);
......
......@@ -50,15 +50,15 @@ public:
KMime::Content *root();
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &index) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
Q_REQUIRED_RESULT QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
Q_REQUIRED_RESULT QModelIndex parent(const QModelIndex &index) const override;
Q_REQUIRED_RESULT int rowCount(const QModelIndex &parent = QModelIndex()) const override;
Q_REQUIRED_RESULT int columnCount(const QModelIndex &parent = QModelIndex()) const override;
Q_REQUIRED_RESULT QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
Q_REQUIRED_RESULT QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
QMimeData *mimeData(const QModelIndexList &indexes) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
QStringList mimeTypes() const override;
Q_REQUIRED_RESULT Qt::ItemFlags flags(const QModelIndex &index) const override;
Q_REQUIRED_RESULT QStringList mimeTypes() const override;
private:
class Private;
Private *const d;
......
......@@ -29,7 +29,7 @@ public:
explicit LoadExternalReferencesUrlInterceptor(QObject *parent = nullptr);
~LoadExternalReferencesUrlInterceptor() override;
bool interceptRequest(QWebEngineUrlRequestInfo &info) override;
Q_REQUIRED_RESULT bool interceptRequest(QWebEngineUrlRequestInfo &info) override;
void setAllowExternalContent(bool b);
Q_REQUIRED_RESULT bool allowExternalContent() const;
private:
......
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