diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-08 19:37:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-08 19:37:30 +0000 |
commit | 222c18d18afe76228775c0d73004e9c77bea611e (patch) | |
tree | ed35ad3b6c517842271ae8c816888d0ee328e198 /libs/pbd/pbd/id.h | |
parent | ea63af333e2bb159666c42b364aedcda8f40c4ef (diff) |
add copy constructor for PBD::ID
git-svn-id: svn://localhost/ardour2/branches/3.0@6650 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/id.h')
-rw-r--r-- | libs/pbd/pbd/id.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/pbd/pbd/id.h b/libs/pbd/pbd/id.h index d25ca81ef0..7a32a29002 100644 --- a/libs/pbd/pbd/id.h +++ b/libs/pbd/pbd/id.h @@ -31,7 +31,8 @@ class ID { public: ID (); ID (std::string); - + ID (const ID&); + bool operator== (const ID& other) const { return _id == other._id; } @@ -43,6 +44,7 @@ class ID { bool operator== (const std::string&) const; ID& operator= (std::string); + ID& operator= (const ID&); bool operator< (const ID& other) const { return _id < other._id; |