summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx/Dictionary.inl
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /FoundationEx/Dictionary.inl
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'FoundationEx/Dictionary.inl')
-rw-r--r--FoundationEx/Dictionary.inl13
1 files changed, 0 insertions, 13 deletions
diff --git a/FoundationEx/Dictionary.inl b/FoundationEx/Dictionary.inl
index 53ee998..cd58679 100644
--- a/FoundationEx/Dictionary.inl
+++ b/FoundationEx/Dictionary.inl
@@ -63,15 +63,8 @@ T& Dictionary<T>::operator[](const Text& key)
if (cell == 0) { // empty chain
items++;
-
-#ifdef MEM_DEBUG
- cell = new(__FILE__,__LINE__) DictionaryCell<T>(key);
-#else
cell = new DictionaryCell<T>(key);
-#endif
-
table[idx] = cell;
-
return cell->value;
}
else { // search for key
@@ -80,13 +73,7 @@ T& Dictionary<T>::operator[](const Text& key)
if (cell->key != key) { // not found in chain
items++;
-
-#ifdef MEM_DEBUG
- cell->next = new(__FILE__,__LINE__) DictionaryCell<T>(key);
-#else
cell->next = new DictionaryCell<T>(key);
-#endif
-
return cell->next->value;
}
else { // found: return it!