diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-23 20:21:23 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-23 20:21:23 +0100 |
commit | 9a181cd75cd08d598ea9873b03f8e33cdd3845ba (patch) | |
tree | 20ffb1a99031ba7bc1c6443c35ae46e4c4e4743f /game/network/link.h | |
parent | Merge branch 'resviewer' (diff) | |
download | ilt-9a181cd75cd08d598ea9873b03f8e33cdd3845ba.tar.bz2 ilt-9a181cd75cd08d598ea9873b03f8e33cdd3845ba.tar.xz ilt-9a181cd75cd08d598ea9873b03f8e33cdd3845ba.zip |
Fix all warnings game/network/*
Mostly naming of variables.
Diffstat (limited to 'game/network/link.h')
-rw-r--r-- | game/network/link.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/game/network/link.h b/game/network/link.h index 59bbb65..0b58558 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -16,7 +16,7 @@ template<typename> class Ray; // it has location class Node : public StdTypeDefs<Node> { public: - explicit Node(GlobalPosition3D p) noexcept : pos(p) { }; + explicit Node(GlobalPosition3D position) noexcept : pos(position) { }; virtual ~Node() noexcept = default; NO_COPY(Node); NO_MOVE(Node); @@ -35,6 +35,7 @@ public: struct End { Node::Ptr node; float dir; + // NOLINTNEXTLINE(readability-redundant-member-init) don't require client to empty initialise this Nexts nexts {}; }; @@ -58,8 +59,8 @@ protected: } }; -bool operator<(const GlobalPosition3D & a, const GlobalPosition3D & b); -bool operator<(const Node & a, const Node & b); +bool operator<(const GlobalPosition3D &, const GlobalPosition3D &); +bool operator<(const Node &, const Node &); class LinkStraight : public virtual Link { public: |