diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-01-31 19:37:53 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-01-31 21:27:26 -0800 |
commit | b64fdae938871976f0fdb6ab0d1a6f623ae9cd64 (patch) | |
tree | f14661c6749632066cbf33c095c633a2128f4fd6 /test | |
parent | 0b2444450f1dd3e249529d14418abf89579ad09a (diff) |
[clang-tidy] use override instead of virtual
Found with modernize-use-override
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/DumpDatabase.cxx | 4 | ||||
-rw-r--r-- | test/run_neighbor_explorer.cxx | 4 | ||||
-rw-r--r-- | test/visit_archive.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index c601d7258..82a83eac6 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -68,11 +68,11 @@ InputStream::LockRead(void *, size_t) class MyDatabaseListener final : public DatabaseListener { public: - virtual void OnDatabaseModified() noexcept override { + void OnDatabaseModified() noexcept override { cout << "DatabaseModified" << endl; } - virtual void OnDatabaseSongRemoved(const char *uri) noexcept override { + void OnDatabaseSongRemoved(const char *uri) noexcept override { cout << "SongRemoved " << uri << endl; } }; diff --git a/test/run_neighbor_explorer.cxx b/test/run_neighbor_explorer.cxx index c6242dad6..e10782a8d 100644 --- a/test/run_neighbor_explorer.cxx +++ b/test/run_neighbor_explorer.cxx @@ -32,12 +32,12 @@ class MyNeighborListener final : public NeighborListener { public: /* virtual methods from class NeighborListener */ - virtual void FoundNeighbor(const NeighborInfo &info) noexcept override { + void FoundNeighbor(const NeighborInfo &info) noexcept override { printf("found '%s' (%s)\n", info.display_name.c_str(), info.uri.c_str()); } - virtual void LostNeighbor(const NeighborInfo &info) noexcept override { + void LostNeighbor(const NeighborInfo &info) noexcept override { printf("lost '%s' (%s)\n", info.display_name.c_str(), info.uri.c_str()); } diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index f699b03c2..2c82d5edc 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -54,7 +54,7 @@ public: class MyArchiveVisitor final : public ArchiveVisitor { public: - virtual void VisitArchiveEntry(const char *path_utf8) override { + void VisitArchiveEntry(const char *path_utf8) override { printf("%s\n", path_utf8); } }; |