Defence
This commit is contained in:
+5
-3
@@ -39,9 +39,11 @@ Choice::Choice(FormGroup * parent, const rect_t & rect, const char * values[], i
|
|||||||
getValue(std::move(getValue)),
|
getValue(std::move(getValue)),
|
||||||
setValue(std::move(setValue))
|
setValue(std::move(setValue))
|
||||||
{
|
{
|
||||||
const char ** value = &values[0];
|
if (values) {
|
||||||
for (int i = vmin; i <= vmax; i++) {
|
const char ** value = &values[0];
|
||||||
this->values.emplace_back(*value++);
|
for (int i = vmin; i <= vmax; i++) {
|
||||||
|
this->values.emplace_back(*value++);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user