summaryrefslogtreecommitdiff
path: root/muse2/muse/part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/part.cpp')
-rw-r--r--muse2/muse/part.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/muse2/muse/part.cpp b/muse2/muse/part.cpp
index e25643c8..b6d1571a 100644
--- a/muse2/muse/part.cpp
+++ b/muse2/muse/part.cpp
@@ -375,10 +375,10 @@ iEvent Part::addEvent(Event& p)
// index
//---------------------------------------------------------
-int PartList::index(Part* part)
+int PartList::index(const Part* part) const
{
int index = 0;
- for (iPart i = begin(); i != end(); ++i, ++index)
+ for (ciPart i = begin(); i != end(); ++i, ++index)
if (i->second == part) {
return index;
}