Updated to latest Arbutils.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -16,7 +16,9 @@ namespace CreatureLib::Library {
|
||||
size_t _index;
|
||||
|
||||
public:
|
||||
BaseLibrary(size_t initialCapacity = 32) : _values(initialCapacity), _listValues(initialCapacity) {}
|
||||
BaseLibrary(size_t initialCapacity = 32) : _values(initialCapacity), _listValues(0) {
|
||||
_listValues.Resize(initialCapacity);
|
||||
}
|
||||
|
||||
virtual ~BaseLibrary() {
|
||||
for (const auto& v : _values) {
|
||||
@@ -28,12 +30,12 @@ namespace CreatureLib::Library {
|
||||
inline void Insert(const Arbutils::CaseInsensitiveConstString& key, const T* value) {
|
||||
AssertNotNull(value)
|
||||
_values.Insert(key.GetHash(), value);
|
||||
_listValues[_index++] = key;
|
||||
_listValues.Append(key);
|
||||
}
|
||||
inline void Insert(uint32_t hashedKey, const T* value) {
|
||||
AssertNotNull(value)
|
||||
_values.Insert(hashedKey, value);
|
||||
_listValues[_index++] = hashedKey;
|
||||
_listValues.Append(hashedKey);
|
||||
}
|
||||
|
||||
inline void Delete(const Arbutils::CaseInsensitiveConstString& key) {
|
||||
|
||||
Reference in New Issue
Block a user