diff --git a/src/AutoConnectElementBasis.h b/src/AutoConnectElementBasis.h index 74b419c..77dcc1b 100644 --- a/src/AutoConnectElementBasis.h +++ b/src/AutoConnectElementBasis.h @@ -100,14 +100,14 @@ class AutoConnectCheckboxBasis : virtual public AutoConnectElementBasis { */ class AutoConnectInputBasis : virtual public AutoConnectElementBasis { public: - explicit AutoConnectInputBasis(const char* name = "", const char* value = "", const char* placeholder = "", const char* label = "") : AutoConnectElementBasis(name, value), placeholder(String(placeholder)), label(String(label)) { + explicit AutoConnectInputBasis(const char* name = "", const char* value = "", const char* label = "", const char* placeholder = "") : AutoConnectElementBasis(name, value), label(String(label)), placeholder(String(placeholder)) { _type = AC_Input; } virtual ~AutoConnectInputBasis() {} const String toHTML(void) const override; - String placeholder; String label; /**< A label for a subsequent input box */ + String placeholder; }; /** diff --git a/src/AutoConnectElementJson.h b/src/AutoConnectElementJson.h index 70c0e3f..85d4596 100644 --- a/src/AutoConnectElementJson.h +++ b/src/AutoConnectElementJson.h @@ -115,11 +115,11 @@ class AutoConnectCheckboxJson : public AutoConnectElementJson, public AutoConnec */ class AutoConnectInputJson : public AutoConnectElementJson, public AutoConnectInputBasis { public: - explicit AutoConnectInputJson(const char* name = "", const char* value = "", const char* placeholder = "", const char* label = "") { + explicit AutoConnectInputJson(const char* name = "", const char* value = "", const char* label = "", const char* placeholder = "") { AutoConnectInputBasis::name = String(name); AutoConnectInputBasis::value = String(value); - AutoConnectInputBasis::placeholder = String(placeholder); AutoConnectInputBasis::label = String(label); + AutoConnectInputBasis::placeholder = String(placeholder); } ~AutoConnectInputJson() {} const size_t getObjectSize(void) const override;