MCPcopy Create free account
hub / github.com/Kitware/CMake / SetOption

Method SetOption

Source/CursesDialog/cmCursesOptionsWidget.cxx:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void cmCursesOptionsWidget::SetOption(std::string const& value)
83{
84 this->CurrentOption = 0; // default to 0 index
85 this->SetValue(value);
86 int index = 0;
87 for (auto const& opt : this->Options) {
88 if (opt == value) {
89 this->CurrentOption = index;
90 }
91 index++;
92 }
93}

Callers 1

Calls 1

SetValueMethod · 0.45

Tested by

no test coverage detected