--- deliantra/server/common/shstr.C 2006/09/12 19:20:06 1.17 +++ deliantra/server/common/shstr.C 2006/09/13 23:39:27 1.19 @@ -1,4 +1,3 @@ - /* * shstr.C */ @@ -12,7 +11,7 @@ #include "global.h" -typedef std::tr1::unordered_set HT; +typedef std::tr1::unordered_set , true> HT; static HT ht; @@ -21,7 +20,7 @@ { int len = strlen (s); - const char *v = (const char *) (2 + (int *) g_slice_alloc (sizeof (int) * 2 + len + 1)); + const char *v = (const char *) (2 + (int *)g_slice_alloc (sizeof (int) * 2 + len + 1)); shstr::length (v) = len; shstr::refcnt (v) = 1; @@ -74,9 +73,6 @@ void shstr::gc () { -return; //D -//D currently disabled: some datastructures might still store them -//D but their pointers will become invalidated static const char *curpos; HT::iterator i = curpos ? ht.find (curpos) : ht.begin ();