summaryrefslogtreecommitdiff
path: root/methods/basehttp.h
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 /methods/basehttp.h
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 'methods/basehttp.h')
-rw-r--r--methods/basehttp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/basehttp.h b/methods/basehttp.h
index c077ea384..ee4a84d3d 100644
--- a/methods/basehttp.h
+++ b/methods/basehttp.h
@@ -126,7 +126,7 @@ struct ServerState
class BaseHttpMethod : public aptAuthConfMethod
{
protected:
- virtual bool Fetch(FetchItem *) APT_OVERRIDE;
+ bool Fetch(FetchItem *) override;
std::unique_ptr<ServerState> Server;
std::string NextURI;
@@ -170,7 +170,7 @@ class BaseHttpMethod : public aptAuthConfMethod
virtual void SendReq(FetchItem *Itm) = 0;
virtual std::unique_ptr<ServerState> CreateServerState(URI const &uri) = 0;
virtual void RotateDNS() = 0;
- virtual bool Configuration(std::string Message) APT_OVERRIDE;
+ bool Configuration(std::string Message) override;
bool AddProxyAuth(URI &Proxy, URI const &Server);