summaryrefslogtreecommitdiff
path: root/test/libapt/indexcopytosourcelist_test.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-12-26 19:41:53 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2025-01-05 22:16:08 +0000
commitf73593a4034d9eec0ec4466b8e173d4a4daece1f (patch)
tree9cab47b9426e3e9fff80682b86f8449e3d9c9b53 /test/libapt/indexcopytosourcelist_test.cc
parent427f95cedadb5323d35e5174d4592cbdd9c602f4 (diff)
Drop usage of macro APT_OVERRIDE for simple override
We were rather inconsistent in using it and as our public headers contain deduction guides (a c++17 feature) it seems silly to try to hide a c++11 feature in a macro, so lets stop this charade and drop the macro and while we are changing all these lines lets apply [[nodiscard]] (another c++17 feature) and other suggestions from clang-tidy and formatting for a little more consistency.
Diffstat (limited to 'test/libapt/indexcopytosourcelist_test.cc')
-rw-r--r--test/libapt/indexcopytosourcelist_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libapt/indexcopytosourcelist_test.cc b/test/libapt/indexcopytosourcelist_test.cc
index a1fed06fa..f112ae937 100644
--- a/test/libapt/indexcopytosourcelist_test.cc
+++ b/test/libapt/indexcopytosourcelist_test.cc
@@ -15,10 +15,10 @@ class NoCopy : private IndexCopy {
IndexCopy::ConvertToSourceList(CD, Path);
return Path;
}
- bool GetFile(std::string &/*Filename*/, unsigned long long &/*Size*/) APT_OVERRIDE { return false; }
- bool RewriteEntry(FileFd & /*Target*/, std::string const &/*File*/) APT_OVERRIDE { return false; }
- const char *GetFileName() APT_OVERRIDE { return NULL; }
- const char *Type() APT_OVERRIDE { return NULL; }
+ bool GetFile(std::string &/*Filename*/, unsigned long long &/*Size*/) override { return false; }
+ bool RewriteEntry(FileFd & /*Target*/, std::string const &/*File*/) override { return false; }
+ const char *GetFileName() override { return nullptr; }
+ const char *Type() override { return nullptr; }
};