diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-13 18:02:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-13 20:43:16 +0100 |
commit | 62172828e4114437b88456dd12d90066fde458df (patch) | |
tree | f76b1f8e96879519aa6816cdb8f3930853d19a1f /editor/tile-editor.cpp | |
parent | a3ce6fe47871442d7b524c8f199987622a860f95 (diff) |
use new pair destructuring operator
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r-- | editor/tile-editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index d89a291d..9f9b6571 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -6,7 +6,7 @@ #include "random.hpp" #include "serialize/json-helper.hpp" #include "serialize/tile-atlas.hpp" -#include <Corrade/Containers/Pair.h> +#include <Corrade/Containers/PairStl.h> #include <Corrade/Utility/Path.h> namespace floormat { @@ -22,7 +22,7 @@ void tile_editor::load_atlases() const auto filename = _name + ".json"; for (auto& atlas : json_helper::from_json<atlas_array>(Path::join(loader_::IMAGE_PATH, filename))) { - const StringView name = Path::splitExtension(atlas->name()).first(); + const auto [name, _ext] = Path::splitExtension(atlas->name()); auto& [_, vec] = _permutation; vec.reserve(atlas->num_tiles()); _atlases[name] = atlas; |