Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarString.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-05-25 11:12:31 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-05-25 11:12:31 +1000
commitdb42ccae717f175106491f7ff360ea6a0090d32b (patch)
treebdd1c93557216af10606e0ab3806fc445db8ce8a /source/core/StarString.hpp
parent19986b30a1724ebdda644427152575fd294a2dd8 (diff)
fix Assets filesByExtension storing duplicate asset paths
slipped in with the asset load scripts - this caused rare duplication errors when the Databases parse assets by extension and an asset path is indexed with more than one capitalization #66
Diffstat (limited to 'source/core/StarString.hpp')
-rw-r--r--source/core/StarString.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarString.hpp b/source/core/StarString.hpp
index 9c18515..2280fb6 100644
--- a/source/core/StarString.hpp
+++ b/source/core/StarString.hpp
@@ -359,6 +359,8 @@ struct CaseInsensitiveStringCompare {
typedef HashSet<String> StringSet;
+typedef HashSet<String, CaseInsensitiveStringHash, CaseInsensitiveStringCompare> CaseInsensitiveStringSet;
+
template <typename MappedT, typename HashT = hash<String>, typename ComparatorT = std::equal_to<String>>
using StringMap = HashMap<String, MappedT, HashT, ComparatorT>;