Choice fixes
This commit is contained in:
+3
-2
@@ -113,12 +113,13 @@ class Choice : public ChoiceBase {
|
|||||||
while (value < vmax && !isValueAvailable(value)) {
|
while (value < vmax && !isValueAvailable(value)) {
|
||||||
value++;
|
value++;
|
||||||
}
|
}
|
||||||
|
value++;
|
||||||
index--;
|
index--;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getValuesCount()
|
unsigned getValuesCount()
|
||||||
{
|
{
|
||||||
return getIndexFromValue(vmax + 1);
|
return getIndexFromValue(vmax + 1);
|
||||||
}
|
}
|
||||||
@@ -128,7 +129,7 @@ class Choice : public ChoiceBase {
|
|||||||
textHandler = std::move(handler);
|
textHandler = std::move(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setMenuTitle(const std::string value)
|
void setMenuTitle(std::string value)
|
||||||
{
|
{
|
||||||
menuTitle = std::move(value);
|
menuTitle = std::move(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user