Choice fixes

This commit is contained in:
Bertrand Songis
2020-05-14 09:17:41 +02:00
parent 514f966435
commit 4ac45a55fb
+3 -2
View File
@@ -113,12 +113,13 @@ class Choice : public ChoiceBase {
while (value < vmax && !isValueAvailable(value)) {
value++;
}
value++;
index--;
}
return value;
}
int getValuesCount()
unsigned getValuesCount()
{
return getIndexFromValue(vmax + 1);
}
@@ -128,7 +129,7 @@ class Choice : public ChoiceBase {
textHandler = std::move(handler);
}
void setMenuTitle(const std::string value)
void setMenuTitle(std::string value)
{
menuTitle = std::move(value);
}