From f43a78e3a1ffdba80ae8df21629ac7178ad448f9 Mon Sep 17 00:00:00 2001 From: Modar Nasser Date: Tue, 18 Jun 2024 22:15:46 +0200 Subject: [PATCH] fix formatting --- include/LDtkLoader/Field.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/LDtkLoader/Field.hpp b/include/LDtkLoader/Field.hpp index e9f00b7..1dd48c1 100644 --- a/include/LDtkLoader/Field.hpp +++ b/include/LDtkLoader/Field.hpp @@ -33,11 +33,10 @@ namespace ldtk { template #if defined LDTK_FIELD_PUBLIC_OPTIONAL struct Field : IField, public optional - { #else struct Field : IField, private optional - { #endif + { private: static const ArrayField m_dummy; @@ -63,16 +62,18 @@ namespace ldtk { template auto operator==(const Field& lhs, const T& rhs) -> bool { - if (lhs.is_null()) + if (lhs.is_null()) { return false; + } return (lhs.value() == rhs); } template auto operator==(const T& lhs, const Field& rhs) -> bool { - if (rhs.is_null()) + if (rhs.is_null()) { return false; + } return (rhs.value() == lhs); } @@ -92,6 +93,7 @@ namespace ldtk { struct ArrayField : IField, std::vector> { using value_type = T; + ArrayField() = default; explicit ArrayField(const std::vector>& vals) : std::vector>(vals) {}