void
ID::init ()
{
- counter_lock = new Glib::Mutex;
+ if (!counter_lock)
+ counter_lock = new Glib::Mutex;
}
ID::ID ()
return string(buf);
}
+bool
+ID::operator== (const string& str) const
+{
+ return to_s() == str;
+}
+
ID&
ID::operator= (string str)
{