From 2724659be8c9ea09257e19cafd36ca4791a388d8 Mon Sep 17 00:00:00 2001 From: David Anderson <dvander@alliedmods.net> Date: Mon, 23 Jun 2014 20:06:13 -0700 Subject: [PATCH] Rename to StringMap. --- plugins/include/adt_trie.inc | 6 +++--- plugins/testsuite/tries.sp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/include/adt_trie.inc b/plugins/include/adt_trie.inc index f2f4aaef..82a88882 100644 --- a/plugins/include/adt_trie.inc +++ b/plugins/include/adt_trie.inc @@ -49,7 +49,7 @@ * * @return New Map Handle, which must be freed via CloseHandle(). */ -native AdtMap:CreateTrie(); +native AdtStringMap:CreateTrie(); /** * Sets a value in a hash map, either inserting a new entry or replacing an old one. @@ -156,8 +156,8 @@ native ClearTrie(Handle:map); native GetTrieSize(Handle:map); /* Object-oriented wrapper for maps. */ -methodmap AdtMap < Handle { - public AdtMap() = CreateTrie; +methodmap StringMap < Handle { + public StringMap() = CreateTrie; public SetValue() = SetTrieValue; public SetArray() = SetTrieArray; public SetString() = SetTrieString; diff --git a/plugins/testsuite/tries.sp b/plugins/testsuite/tries.sp index eb9f1113..9947b755 100644 --- a/plugins/testsuite/tries.sp +++ b/plugins/testsuite/tries.sp @@ -17,7 +17,7 @@ public OnPluginStart() public Action:RunTests(argc) { - new AdtMap:map = AdtMap(); + new StringMap:map = StringMap(); for (new i = 0; i < 64; i++) { new String:buffer[24];