summaryrefslogtreecommitdiff
path: root/muse2/muse/part.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-08-22 18:44:42 +0200
committerFlorian Jung <flo@windfisch.org>2013-08-22 18:44:42 +0200
commit8c8b3ac35c12af3817ff8d8c3d169af166821198 (patch)
tree45c4ae839cf6198362957128d75ad022bc224f63 /muse2/muse/part.cpp
parent42373397c2e2fbb14e965db6945def6c4a0f03c4 (diff)
more const-correctness for Part*
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;
}