src/common/trace-context.cc
changeset 1235 dc52ea3507ff
parent 1229 e4cfe4094c10
child 1258 33d510db1e37
--- a/src/common/trace-context.cc	Wed Aug 08 10:01:19 2007 +0200
+++ b/src/common/trace-context.cc	Wed Aug 08 10:06:58 2007 +0200
@@ -242,7 +242,7 @@
 class Ctx : public TraceContextElement
 {
 public:
-  static uint16_t GetUid (void) {static uint16_t uid = Register<Ctx<N> > (GetName ()); return uid;}
+  static uint16_t GetUid (void) {static uint16_t uid = AllocateUid<Ctx<N> > (GetName ()); return uid;}
   static std::string GetName (void) {std::ostringstream oss; oss << "Ctx" << N; return oss.str ();}
   Ctx () : m_v (0) {}
   Ctx (int v) : m_v (v) {}