From 88dc6b7700f1fba7db09bb36ec89bf6df88bb3fd Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 4 May 2018 23:48:05 +0300 Subject: [PATCH] Cfg: add missing get() methods --- Utilities/Config.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Utilities/Config.h b/Utilities/Config.h index be7c58d2dc..3803a29758 100644 --- a/Utilities/Config.h +++ b/Utilities/Config.h @@ -132,6 +132,11 @@ namespace cfg return m_value; } + bool get() const + { + return m_value; + } + void from_default() override; std::string to_string() const override @@ -178,6 +183,11 @@ namespace cfg return m_value; } + T get() const + { + return m_value; + } + void from_default() override { m_value = def; @@ -236,6 +246,11 @@ namespace cfg return m_value; } + int_type get() const + { + return m_value; + } + void from_default() override { m_value = def;