MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / lookupGain

Method lookupGain

Components/PanoramicDialog.cpp:759–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759DeviceGain *
760PanoramicDialog::lookupGain(std::string const &name)
761{
762 // Why is this? Use a map instead.
763 for (auto p = this->gainControls.begin();
764 p != this->gainControls.end();
765 ++p) {
766 if ((*p)->getName() == name)
767 return *p;
768 }
769
770 return nullptr;
771}
772
773void
774PanoramicDialog::clearGains(void)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected