summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
commit8cd0977a3688fa705c83867c57505a47b9269369 (patch)
treeb7b48711051299607077ed31fdf3b3f6dd6cc41f /game/network/network.h
parentTidy shadow map creation (diff)
downloadilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.bz2
ilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.xz
ilt-8cd0977a3688fa705c83867c57505a47b9269369.zip
Fix up all the static analyzer warnings
Diffstat (limited to 'game/network/network.h')
-rw-r--r--game/network/network.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/network/network.h b/game/network/network.h
index e7a65b5..4b485cc 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -7,6 +7,7 @@
#include <memory>
#include <set>
#include <sorting.hpp>
+#include <special_members.hpp>
#include <string>
#include <utility>
#include <variant>
@@ -23,6 +24,7 @@ public:
using LinkEnd = std::pair<Link::Ptr, unsigned char>;
explicit Network(const std::string & textureName);
virtual ~Network() = default;
+ DEFAULT_MOVE_NO_COPY(Network);
[[nodiscard]] Node::Ptr findNodeAt(glm::vec3) const;
[[nodiscard]] Node::Ptr nodeAt(glm::vec3);
@@ -43,7 +45,7 @@ public:
virtual Link::CCollection addJoins(glm::vec3, glm::vec3) = 0;
virtual Link::CCollection addExtend(glm::vec3, glm::vec3) = 0;
- virtual float findNodeDirection(Node::AnyCPtr) const = 0;
+ [[nodiscard]] virtual float findNodeDirection(Node::AnyCPtr) const = 0;
protected:
static void joinLinks(const Link::Ptr & l, const Link::Ptr & ol);
@@ -94,7 +96,7 @@ public:
Link::CCollection addJoins(glm::vec3, glm::vec3) override;
Link::CCollection addExtend(glm::vec3, glm::vec3) override;
- float findNodeDirection(Node::AnyCPtr) const override;
+ [[nodiscard]] float findNodeDirection(Node::AnyCPtr) const override;
void render(const SceneShader &) const override;