From 5bb7b0bf2371cb97248647b4ea109154c65e9b65 Mon Sep 17 00:00:00 2001 From: Juliano Leal Goncalves Date: Mon, 6 Sep 2021 00:10:30 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Reduce=20visibility=20of?= =?UTF-8?q?=20'Displacement::fromDirection'=20to=20'private'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will enforce the new constructor conversion approach over the use of the static method. --- Source/engine/displacement.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/engine/displacement.hpp b/Source/engine/displacement.hpp index 5d0ea87aa..1c897f4e5 100644 --- a/Source/engine/displacement.hpp +++ b/Source/engine/displacement.hpp @@ -103,6 +103,7 @@ struct Displacement { return { abs(a.deltaX), abs(a.deltaY) }; } +private: static constexpr Displacement fromDirection(Direction direction) { switch (direction) {