From caa28a84caddcabdf63bccb23a9a6fadba709d9f Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 3 Jan 2019 02:29:47 +0900 Subject: [PATCH] Minor changed interface of join method. --- src/AutoConnect.cpp | 6 ++---- src/AutoConnect.h | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index b734341..0f79748 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -307,14 +307,13 @@ AutoConnectAux* AutoConnect::aux(const String& uri) const { * @param aux A reference to AutoConnectAux that made up * the auxiliary page to be added. */ -bool AutoConnect::join(AutoConnectAux& aux) { +void AutoConnect::join(AutoConnectAux& aux) { if (_aux) _aux->_concat(aux); else _aux.reset(&aux); aux._join(*this); AC_DBG("%s on hands\n", aux.uri()); - return true; } /** @@ -322,12 +321,11 @@ bool AutoConnect::join(AutoConnectAux& aux) { * @param aux A vector of reference to AutoConnectAux that made up * the auxiliary page to be added. */ -bool AutoConnect::join(std::vector> aux) { +void AutoConnect::join(std::vector> aux) { for (std::size_t n = 0; n < aux.size(); n++) { AutoConnectAux& addon = aux[n].get(); join(addon); } - return true; } /** diff --git a/src/AutoConnect.h b/src/AutoConnect.h index 205af20..53c698d 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -168,8 +168,8 @@ class AutoConnect { void handleClient(); void handleRequest(); WebServerClass& host(); - bool join(AutoConnectAux& aux); - bool join(std::vector> aux); + void join(AutoConnectAux& aux); + void join(std::vector> aux); bool on(const String& uri, const AuxHandlerFunctionT handler, AutoConnectExitOrder_t order = AC_EXIT_AHEAD); /** For AutoConnectAux described in JSON */