summaryrefslogtreecommitdiff
path: root/yapf/hashtable.hpp
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2006-11-14 12:02:36 +0000
committerKUDr <KUDr@openttd.org>2006-11-14 12:02:36 +0000
commit8a588f9cf11356943c17eb64d81a98fbd142c5ea (patch)
tree616cc0a9337fc4a58db45e5c6192dbd69dbaa122 /yapf/hashtable.hpp
parenta0b44e744f66ba26f5a96b13347028308041ace7 (diff)
downloadopenttd-8a588f9cf11356943c17eb64d81a98fbd142c5ea.tar.xz
(svn r7146) -CodeChange: ST_CONST macro removed as it is no longer needed (Tron)
Diffstat (limited to 'yapf/hashtable.hpp')
-rw-r--r--yapf/hashtable.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/yapf/hashtable.hpp b/yapf/hashtable.hpp
index 44ea315e2..268f73dd0 100644
--- a/yapf/hashtable.hpp
+++ b/yapf/hashtable.hpp
@@ -118,10 +118,10 @@ struct CHashTableSlotT
template <class Titem_, int Thash_bits_>
class CHashTableT {
public:
- typedef Titem_ Titem; // make Titem_ visible from outside of class
- typedef typename Titem_::Key Tkey; // make Titem_::Key a property of HashTable
- ST_CONST(int, Thash_bits = Thash_bits_) // publish num of hash bits
- ST_CONST(int, Tcapacity = 1 << Thash_bits) // and num of slots 2^bits
+ typedef Titem_ Titem; // make Titem_ visible from outside of class
+ typedef typename Titem_::Key Tkey; // make Titem_::Key a property of HashTable
+ static const int Thash_bits = Thash_bits_; // publish num of hash bits
+ static const int Tcapacity = 1 << Thash_bits; // and num of slots 2^bits
protected:
/** each slot contains pointer to the first item in the list,