Commit 725993fb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent 99efd37a
Pipeline #48608 canceled with stage
......@@ -50,7 +50,7 @@ public:
void setDataBaseDownloadNeeded(WebEngineViewer::CreatePhishingUrlDataBaseJob::DataBaseDownloadType type);
QByteArray jsonRequest() const;
Q_REQUIRED_RESULT QByteArray jsonRequest() const;
void parseResult(const QByteArray &value);
......
......@@ -35,7 +35,7 @@ public:
void addHashStatus(const QByteArray &hash, HashCacheManager::UrlStatus status, uint cacheDuration);
HashCacheManager::UrlStatus hashStatus(const QByteArray &hash);
Q_REQUIRED_RESULT HashCacheManager::UrlStatus hashStatus(const QByteArray &hash);
private:
HashCacheManagerPrivate *const d;
......
......@@ -30,11 +30,11 @@ public:
~LocalDataBaseFile();
void close();
bool fileExists() const;
Q_REQUIRED_RESULT bool fileExists() const;
bool reload();
bool isValid() const;
Q_REQUIRED_RESULT bool isValid() const;
quint16 getUint16(int offset) const;
quint32 getUint32(int offset) const;
quint64 getUint64(int offset) const;
......@@ -42,9 +42,9 @@ public:
QByteArray searchHash(const QByteArray &hashToSearch);
bool shouldCheck() const;
bool checkFileChanged();
QVector<WebEngineViewer::Addition> extractAllInfo() const;
Q_REQUIRED_RESULT bool shouldCheck() const;
Q_REQUIRED_RESULT bool checkFileChanged();
Q_REQUIRED_RESULT QVector<WebEngineViewer::Addition> extractAllInfo() const;
private:
LocalDataBaseFilePrivate *const d;
......
......@@ -96,7 +96,7 @@ FindBarBase::~FindBarBase()
{
}
QMenu *FindBarBase::optionsMenu()
QMenu *FindBarBase::optionsMenu() const
{
return mOptionsMenu;
}
......
......@@ -39,7 +39,7 @@ protected:
virtual void updateSensitivity(bool);
void setFoundMatch(bool match);
QMenu *optionsMenu();
QMenu *optionsMenu() const;
public Q_SLOTS:
void findNext();
......
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