summaryrefslogtreecommitdiff
path: root/src/archive
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-31 19:37:53 -0800
committerRosen Penev <rosenp@gmail.com>2020-01-31 21:27:26 -0800
commitb64fdae938871976f0fdb6ab0d1a6f623ae9cd64 (patch)
treef14661c6749632066cbf33c095c633a2128f4fd6 /src/archive
parent0b2444450f1dd3e249529d14418abf89579ad09a (diff)
[clang-tidy] use override instead of virtual
Found with modernize-use-override Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/plugins/Bzip2ArchivePlugin.cxx4
-rw-r--r--src/archive/plugins/Iso9660ArchivePlugin.cxx4
-rw-r--r--src/archive/plugins/ZzipArchivePlugin.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/archive/plugins/Bzip2ArchivePlugin.cxx b/src/archive/plugins/Bzip2ArchivePlugin.cxx
index ce86fe607..79c0bf138 100644
--- a/src/archive/plugins/Bzip2ArchivePlugin.cxx
+++ b/src/archive/plugins/Bzip2ArchivePlugin.cxx
@@ -47,7 +47,7 @@ public:
name.erase(len - 4);
}
- virtual void Visit(ArchiveVisitor &visitor) override {
+ void Visit(ArchiveVisitor &visitor) override {
visitor.VisitArchiveEntry(name.c_str());
}
@@ -68,7 +68,7 @@ public:
Bzip2InputStream(const std::shared_ptr<InputStream> &_input,
const char *uri,
Mutex &mutex);
- ~Bzip2InputStream();
+ ~Bzip2InputStream() override;
/* virtual methods from InputStream */
bool IsEOF() const noexcept override;
diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx
index e95c5de38..2a63b2505 100644
--- a/src/archive/plugins/Iso9660ArchivePlugin.cxx
+++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx
@@ -71,7 +71,7 @@ public:
void Visit(char *path, size_t length, size_t capacity,
ArchiveVisitor &visitor);
- virtual void Visit(ArchiveVisitor &visitor) override;
+ void Visit(ArchiveVisitor &visitor) override;
InputStreamPtr OpenStream(const char *path,
Mutex &mutex) override;
@@ -152,7 +152,7 @@ public:
SetReady();
}
- ~Iso9660InputStream() {
+ ~Iso9660InputStream() override {
free(statbuf);
}
diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx
index 8a526805c..7b60ab36f 100644
--- a/src/archive/plugins/ZzipArchivePlugin.cxx
+++ b/src/archive/plugins/ZzipArchivePlugin.cxx
@@ -57,7 +57,7 @@ public:
ZzipArchiveFile(std::shared_ptr<ZzipDir> &&_dir)
:dir(std::move(_dir)) {}
- virtual void Visit(ArchiveVisitor &visitor) override;
+ void Visit(ArchiveVisitor &visitor) override;
InputStreamPtr OpenStream(const char *path,
Mutex &mutex) override;
@@ -106,7 +106,7 @@ public:
SetReady();
}
- ~ZzipInputStream() {
+ ~ZzipInputStream() override {
zzip_file_close(file);
}