diff options
author | Florian Jung <flo@windfisch.org> | 2013-08-28 00:40:01 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-08-28 00:40:01 +0200 |
commit | aad3d78d3ec7e4916028059cb7b0023eedbaa095 (patch) | |
tree | 334ed55449926dd581c78cc34e28f96856875901 /muse2/muse/event.cpp | |
parent | ea623cac61f43baf3890c2c8a71c95d7ad453e28 (diff) |
added "similar"-comparison to Event(Base)
Diffstat (limited to 'muse2/muse/event.cpp')
-rw-r--r-- | muse2/muse/event.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/muse2/muse/event.cpp b/muse2/muse/event.cpp index 065a49cf..32b72277 100644 --- a/muse2/muse/event.cpp +++ b/muse2/muse/event.cpp @@ -179,6 +179,10 @@ Event& Event::operator=(const Event& e) { bool Event::operator==(const Event& e) const { return ev == e.ev; } +bool Event::isSimilarTo(const Event& other) const +{ + return ev->isSimilarTo(*other.ev); +} int Event::getRefCount() const { return ev->getRefCount(); } bool Event::selected() const { return ev->_selected; } |