X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fid.cc;h=ab7806873ebb54fed9852d27cb1a53505fcfc785;hb=25d1670a61d19e795227b939a98be9cf5a050c67;hp=0de0d052c3d7a5e2d6e5c84697f8d553adba61df;hpb=ea71de278461b2bc0240515b82bb56ef68f5eee3;p=ardour.git diff --git a/libs/pbd/id.cc b/libs/pbd/id.cc index 0de0d052c3..ab7806873e 100644 --- a/libs/pbd/id.cc +++ b/libs/pbd/id.cc @@ -25,7 +25,7 @@ ID::init () ID::ID () { Glib::Mutex::Lock lm (*counter_lock); - id = _counter++; + _id = _counter++; } ID::ID (string str) @@ -36,14 +36,14 @@ ID::ID (string str) int ID::string_assign (string str) { - return sscanf (str.c_str(), "%" PRIu64, &id) != 0; + return sscanf (str.c_str(), "%" PRIu64, &_id) != 0; } void ID::print (char* buf) const { /* XXX sizeof buf is unknown. bad API design */ - snprintf (buf, 16, "%" PRIu64, id); + snprintf (buf, 16, "%" PRIu64, _id); } string ID::to_s() const @@ -61,10 +61,10 @@ ID::operator= (string str) } ostream& -operator<< (ostream& ostr, const ID& id) +operator<< (ostream& ostr, const ID& _id) { char buf[32]; - id.print (buf); + _id.print (buf); ostr << buf; return ostr; }