Make find methods const in the mod matrix
This commit is contained in:
parent
bebd398e39
commit
0f74039b39
2 changed files with 4 additions and 4 deletions
|
|
@ -168,7 +168,7 @@ ModMatrix::TargetId ModMatrix::registerTarget(const ModKey& key)
|
|||
return id;
|
||||
}
|
||||
|
||||
ModMatrix::SourceId ModMatrix::findSource(const ModKey& key)
|
||||
ModMatrix::SourceId ModMatrix::findSource(const ModKey& key) const
|
||||
{
|
||||
Impl& impl = *impl_;
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ ModMatrix::SourceId ModMatrix::findSource(const ModKey& key)
|
|||
return SourceId(it->second);
|
||||
}
|
||||
|
||||
ModMatrix::TargetId ModMatrix::findTarget(const ModKey& key)
|
||||
ModMatrix::TargetId ModMatrix::findTarget(const ModKey& key) const
|
||||
{
|
||||
Impl& impl = *impl_;
|
||||
|
||||
|
|
|
|||
|
|
@ -77,14 +77,14 @@ public:
|
|||
*
|
||||
* @param key source key
|
||||
*/
|
||||
SourceId findSource(const ModKey& key);
|
||||
SourceId findSource(const ModKey& key) const;
|
||||
|
||||
/**
|
||||
* @brief Look up a target by 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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue