From 2281626efc1c428e9b84fcefe49582d0ff940ace Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Tue, 29 Jan 2019 01:25:25 +0900 Subject: [PATCH] Fixed return value becoming undefined --- src/AutoConnectElementBasis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoConnectElementBasis.h b/src/AutoConnectElementBasis.h index c4a17ca..0632c06 100644 --- a/src/AutoConnectElementBasis.h +++ b/src/AutoConnectElementBasis.h @@ -131,7 +131,7 @@ class AutoConnectRadioBasis : virtual public AutoConnectElementBasis { const String& at(const std::size_t n) const { return _values.at(n); } void check(const String& value); void empty(const size_t reserve = 0); - const String& value(void) { return checked ? _values.at(checked - 1) : String(""); } + const String& value(void) const; String label; /**< A label for a subsequent radio buttons */ ACArrange_t order; /**< layout order */