Warning fixed
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
class CheckBox : public FormField {
|
class CheckBox : public FormField {
|
||||||
public:
|
public:
|
||||||
CheckBox(Window * parent, const rect_t & rect, std::function<uint8_t()> getValue, std::function<void(uint8_t)> setValue,
|
CheckBox(Window * parent, const rect_t & rect, std::function<uint8_t()> getValue, std::function<void(uint8_t)> setValue,
|
||||||
LcdFlags flags = 0) :
|
LcdFlags /*flags*/ = 0) :
|
||||||
FormField(parent, rect),
|
FormField(parent, rect),
|
||||||
_getValue(getValue),
|
_getValue(getValue),
|
||||||
_setValue(setValue)
|
_setValue(setValue)
|
||||||
|
|||||||
+1
-1
@@ -137,7 +137,7 @@ class FormWindow: public FormGroup {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paint(BitmapBuffer * dc) override
|
void paint(BitmapBuffer *) override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ void MenuBody::onEvent(event_t event)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool MenuBody::onTouchEnd(coord_t x, coord_t y)
|
bool MenuBody::onTouchEnd(coord_t /*x*/, coord_t y)
|
||||||
{
|
{
|
||||||
int index = y / MENUS_LINE_HEIGHT;
|
int index = y / MENUS_LINE_HEIGHT;
|
||||||
lines[index].onPress();
|
lines[index].onPress();
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ class ModalWindow: public Window
|
|||||||
void paint(BitmapBuffer * dc) override;
|
void paint(BitmapBuffer * dc) override;
|
||||||
|
|
||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool onTouchStart(coord_t x, coord_t y) override
|
bool onTouchStart(coord_t /*x*/, coord_t /*y*/) override
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ class TextEdit : public FormField {
|
|||||||
friend class TextKeyboard;
|
friend class TextKeyboard;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TextEdit(Window * parent, const rect_t & rect, char * value, uint8_t length, LcdFlags flags = 0) :
|
TextEdit(Window * parent, const rect_t & rect, char * value, uint8_t length, LcdFlags /*flags*/ = 0) :
|
||||||
FormField(parent, rect),
|
FormField(parent, rect),
|
||||||
value(value),
|
value(value),
|
||||||
length(length)
|
length(length)
|
||||||
|
|||||||
+2
-2
@@ -87,7 +87,7 @@ class Window {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string getWindowDebugString(const char * name = nullptr, bool indent = true)
|
std::string getWindowDebugString(const char * name = nullptr)
|
||||||
{
|
{
|
||||||
return getName() + (name ? std::string(" [") + name + "] " : " ") + getRectString();
|
return getName() + (name ? std::string(" [") + name + "] " : " ") + getRectString();
|
||||||
}
|
}
|
||||||
@@ -362,7 +362,7 @@ class Window {
|
|||||||
|
|
||||||
void fullPaint(BitmapBuffer * dc);
|
void fullPaint(BitmapBuffer * dc);
|
||||||
|
|
||||||
virtual void paint(BitmapBuffer * dc)
|
virtual void paint(BitmapBuffer *)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user