summaryrefslogtreecommitdiffhomepage
path: root/loader/atlas-loader-storage.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-14 19:40:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-14 19:40:18 +0100
commit07018b1d1247f4fb558a2b551dd8d4ca35346377 (patch)
tree51ee528771fbb77ee1f62adf38a1d8cca1c8ac8c /loader/atlas-loader-storage.hpp
parent626e49662839a1ecd505547a5671d1ab8ac5b4aa (diff)
switch back to using StringView in atlas loader
Diffstat (limited to 'loader/atlas-loader-storage.hpp')
-rw-r--r--loader/atlas-loader-storage.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/atlas-loader-storage.hpp b/loader/atlas-loader-storage.hpp
index fc540a6e..1cc1e340 100644
--- a/loader/atlas-loader-storage.hpp
+++ b/loader/atlas-loader-storage.hpp
@@ -1,8 +1,8 @@
#pragma once
#include "compat/int-hash.hpp"
#include "atlas-loader-fwd.hpp"
-#include <vector>
#include <cr/StringView.h>
+#include <cr/Array.h>
#include <cr/Optional.h>
#include <tsl/robin_map.h>
@@ -19,9 +19,9 @@ struct atlas_storage
using Atlas = typename Traits::Atlas;
using Cell = typename Traits::Cell;
- tsl::robin_map<String, size_t, hash_string_view, string_equals> name_map;
- std::vector<Cell> cell_array;
- std::vector<String> missing_atlas_names;
+ tsl::robin_map<StringView, size_t, hash_string_view, string_equals> name_map;
+ Array<Cell> cell_array;
+ Array<String> missing_atlas_names;
Optional<Cell> invalid_atlas;
~atlas_storage() noexcept = default;