diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-01-19 15:58:32 +0200 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-01-21 12:51:35 +0000 |
commit | ba09df11ecb7b42dd1c2e9b85d5ebd9edf90984d (patch) | |
tree | dde783715139f194ab6f30c01a93b524fc255286 /src/libs/installer/lib7zarchive.h | |
parent | 6233bf7d5645f9b8b4dcd99b1d3691ed15f9829c (diff) |
Make 'override' specifier usage consistent
Add where missing. Replace occurrences of Q_DECL_OVERRIDE macro,
building IFW requires a C++11 compatible compiler so the language
specifier is preferred.
Change-Id: Idb75e2813d26b9da85e03891f0ae9537c6524c56
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/lib7zarchive.h')
-rw-r--r-- | src/libs/installer/lib7zarchive.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/installer/lib7zarchive.h b/src/libs/installer/lib7zarchive.h index 45f352aeb..f73670a4f 100644 --- a/src/libs/installer/lib7zarchive.h +++ b/src/libs/installer/lib7zarchive.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2021 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Installer Framework. @@ -45,18 +45,18 @@ public: explicit Lib7zArchive(QObject *parent = nullptr); ~Lib7zArchive(); - bool open(QIODevice::OpenMode mode) Q_DECL_OVERRIDE; - void close() Q_DECL_OVERRIDE; - void setFilename(const QString &filename) Q_DECL_OVERRIDE; + bool open(QIODevice::OpenMode mode) override; + void close() override; + void setFilename(const QString &filename) override; - bool extract(const QString &dirPath) Q_DECL_OVERRIDE; - bool extract(const QString &dirPath, const quint64 totalFiles) Q_DECL_OVERRIDE; - bool create(const QStringList &data) Q_DECL_OVERRIDE; - QVector<ArchiveEntry> list() Q_DECL_OVERRIDE; - bool isSupported() Q_DECL_OVERRIDE; + bool extract(const QString &dirPath) override; + bool extract(const QString &dirPath, const quint64 totalFiles) override; + bool create(const QStringList &data) override; + QVector<ArchiveEntry> list() override; + bool isSupported() override; public Q_SLOTS: - void cancel() Q_DECL_OVERRIDE; + void cancel() override; private: void listenExtractCallback(); @@ -83,8 +83,8 @@ Q_SIGNALS: void completedChanged(quint64 completed, quint64 total); private: - void setCurrentFile(const QString &filename) Q_DECL_OVERRIDE; - HRESULT setCompleted(quint64 completed, quint64 total) Q_DECL_OVERRIDE; + void setCurrentFile(const QString &filename) override; + HRESULT setCompleted(quint64 completed, quint64 total) override; private: HRESULT m_state; |