From f0cf302e6e752162ad751ad4333a4f7a18b6dbc2 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Tue, 8 Jan 2019 18:00:56 +0900 Subject: [PATCH] Minor fixed AutoConnectInput constructor --- src/AutoConnectElementBasis.h | 4 ++-- src/AutoConnectElementJson.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;