From 1bbd931520c741a579689d62edb83afda3c2ecc4 Mon Sep 17 00:00:00 2001 From: Modar Nasser Date: Sat, 1 Jun 2024 23:42:40 +0200 Subject: [PATCH] fix formatting --- include/LDtkLoader/DataTypes.hpp | 4 ++-- src/Layer.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/LDtkLoader/DataTypes.hpp b/include/LDtkLoader/DataTypes.hpp index b88582e..2670cf8 100644 --- a/include/LDtkLoader/DataTypes.hpp +++ b/include/LDtkLoader/DataTypes.hpp @@ -220,7 +220,7 @@ auto operator<<(std::ostream& os, const ldtk::IID& iid) -> std::ostream&; namespace std { // specialization for the IID structure, allows to create unordered_set - template<> + template <> struct hash { std::size_t operator()(const ldtk::IID& iid) const noexcept @@ -229,4 +229,4 @@ namespace std { } }; -} +} // namespace std diff --git a/src/Layer.cpp b/src/Layer.cpp index ea109bb..dc98933 100644 --- a/src/Layer.cpp +++ b/src/Layer.cpp @@ -38,10 +38,8 @@ Layer::Layer(const nlohmann::json& j, const World* w, const Level* l) auto& new_tile = m_tiles.back(); m_tiles_map.emplace(new_tile.coordId, new_tile); - if (getTileset().hasEnumTags()) - { - for (const EnumValue& enumtag : getTileset().getTileEnumTags(tile_id)) - { + if (getTileset().hasEnumTags()) { + for (const EnumValue& enumtag : getTileset().getTileEnumTags(tile_id)) { m_tiles_by_enumtag[enumtag.name].emplace_back(new_tile); } }