Add some const qualifiers
This commit is contained in:
parent
ca983090cc
commit
c86e04e63e
2 changed files with 6 additions and 6 deletions
|
|
@ -1905,7 +1905,7 @@ BitArray<config::numCCs> Synth::Impl::collectAllUsedCCs()
|
||||||
return used;
|
return used;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string* Synth::Impl::getKeyLabel(int keyNumber)
|
const std::string* Synth::Impl::getKeyLabel(int keyNumber) const
|
||||||
{
|
{
|
||||||
auto it = keyLabelsMap_.find(keyNumber);
|
auto it = keyLabelsMap_.find(keyNumber);
|
||||||
return (it == keyLabelsMap_.end()) ? nullptr : &keyLabels_[it->second].second;
|
return (it == keyLabelsMap_.end()) ? nullptr : &keyLabels_[it->second].second;
|
||||||
|
|
@ -1923,7 +1923,7 @@ void Synth::Impl::setKeyLabel(int keyNumber, std::string name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string* Synth::Impl::getCCLabel(int ccNumber)
|
const std::string* Synth::Impl::getCCLabel(int ccNumber) const
|
||||||
{
|
{
|
||||||
auto it = ccLabelsMap_.find(ccNumber);
|
auto it = ccLabelsMap_.find(ccNumber);
|
||||||
return (it == ccLabelsMap_.end()) ? nullptr : &ccLabels_[it->second].second;
|
return (it == ccLabelsMap_.end()) ? nullptr : &ccLabels_[it->second].second;
|
||||||
|
|
@ -1941,7 +1941,7 @@ void Synth::Impl::setCCLabel(int ccNumber, std::string name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string* Synth::Impl::getKeyswitchLabel(int swNumber)
|
const std::string* Synth::Impl::getKeyswitchLabel(int swNumber) const
|
||||||
{
|
{
|
||||||
auto it = keyswitchLabelsMap_.find(swNumber);
|
auto it = keyswitchLabelsMap_.find(swNumber);
|
||||||
return (it == keyswitchLabelsMap_.end()) ? nullptr : &keyswitchLabels_[it->second].second;
|
return (it == keyswitchLabelsMap_.end()) ? nullptr : &keyswitchLabels_[it->second].second;
|
||||||
|
|
|
||||||
|
|
@ -181,13 +181,13 @@ struct Synth::Impl final: public Parser::Listener {
|
||||||
|
|
||||||
BitArray<config::numCCs> collectAllUsedCCs();
|
BitArray<config::numCCs> collectAllUsedCCs();
|
||||||
|
|
||||||
const std::string* getKeyLabel(int keyNumber);
|
const std::string* getKeyLabel(int keyNumber) const;
|
||||||
void setKeyLabel(int keyNumber, std::string name);
|
void setKeyLabel(int keyNumber, std::string name);
|
||||||
void clearKeyLabels();
|
void clearKeyLabels();
|
||||||
const std::string* getCCLabel(int ccNumber);
|
const std::string* getCCLabel(int ccNumber) const;
|
||||||
void setCCLabel(int ccNumber, std::string name);
|
void setCCLabel(int ccNumber, std::string name);
|
||||||
void clearCCLabels();
|
void clearCCLabels();
|
||||||
const std::string* getKeyswitchLabel(int swNumber);
|
const std::string* getKeyswitchLabel(int swNumber) const;
|
||||||
void setKeyswitchLabel(int swNumber, std::string name);
|
void setKeyswitchLabel(int swNumber, std::string name);
|
||||||
void clearKeyswitchLabels();
|
void clearKeyswitchLabels();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue