Compare commits

..
Author SHA1 Message Date
J. Nick Koston a1d78cbbf7 [button] Use a user provided default constructor 2026-09-11 21:28:01 -05:00
2 changed files with 5 additions and 2 deletions

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ void log_button(const char *tag, const char *prefix, const char *type, Button *o
*/
class Button : public EntityBase {
public:
// User provided, not "= default": `new(p) Button()` would zero-fill .bss that is already zero.
Button() {}
/** Press this button. This is called by the front-end.
*
* For implementing buttons, please override press_action.
+2 -2
View File
@@ -30,8 +30,8 @@ class TextTraits {
TextMode get_mode() const { return this->mode_; }
protected:
int min_length_{0};
int max_length_{0};
int min_length_;
int max_length_;
const char *pattern_{""};
TextMode mode_{TEXT_MODE_TEXT};
};