Make find methods const in the mod matrix

This commit is contained in:
Paul Ferrand 2020-09-16 13:59:55 +02:00
parent bebd398e39
commit 0f74039b39
2 changed files with 4 additions and 4 deletions

View file

@ -168,7 +168,7 @@ ModMatrix::TargetId ModMatrix::registerTarget(const ModKey& key)
return id; return id;
} }
ModMatrix::SourceId ModMatrix::findSource(const ModKey& key) ModMatrix::SourceId ModMatrix::findSource(const ModKey& key) const
{ {
Impl& impl = *impl_; Impl& impl = *impl_;
@ -179,7 +179,7 @@ ModMatrix::SourceId ModMatrix::findSource(const ModKey& key)
return SourceId(it->second); return SourceId(it->second);
} }
ModMatrix::TargetId ModMatrix::findTarget(const ModKey& key) ModMatrix::TargetId ModMatrix::findTarget(const ModKey& key) const
{ {
Impl& impl = *impl_; Impl& impl = *impl_;

View file

@ -77,14 +77,14 @@ public:
* *
* @param key source key * @param key source key
*/ */
SourceId findSource(const ModKey& key); SourceId findSource(const ModKey& key) const;
/** /**
* @brief Look up a target by key. * @brief Look up a target by key.
* *
* @param key target key * @param key target key
*/ */
TargetId findTarget(const ModKey& key); TargetId findTarget(const ModKey& key) const;
/** /**
* @brief Connect a source and a destination inside the matrix. * @brief Connect a source and a destination inside the matrix.