Cosmetics

This commit is contained in:
Bertrand Songis
2020-10-29 11:49:55 +01:00
parent 94039e60fc
commit 8c6550f8f1
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -21,7 +21,8 @@
#include "form.h"
class BaseNumberEdit : public FormField {
class BaseNumberEdit : public FormField
{
public:
BaseNumberEdit(Window * parent, const rect_t &rect, int32_t vmin, int32_t vmax,
std::function<int32_t()> getValue, std::function<void(int32_t)> setValue = nullptr, WindowFlags windowFlags = 0, LcdFlags textFlags = 0):
@@ -79,7 +80,7 @@ class BaseNumberEdit : public FormField {
invalidate();
}
void setSetValueHandler(std::function<void(int32_t)> handler)
void setSetValueHandler(std::function<void(int)> handler)
{
_setValue = std::move(handler);
}
+1 -1
View File
@@ -76,7 +76,7 @@ class Choice : public ChoiceBase {
bool onTouchEnd(coord_t x, coord_t y) override;
#endif
void setSetValueHandler(std::function<void(int16_t)> handler)
void setSetValueHandler(std::function<void(int)> handler)
{
setValue = std::move(handler);
}