From e4ffd8374040d36c22125eeb534d884f56978592 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 17 Apr 2018 17:43:38 +0200 Subject: Style pass --- lib/configuration/configuration.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/configuration') diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index 1c919b0..c5e044f 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -9,13 +9,13 @@ #ifndef SMOLBOTE_CONFIGURATION_H #define SMOLBOTE_CONFIGURATION_H -#include -#include -#include #include -#include #include #include +#include +#include +#include +#include class Configuration { @@ -43,16 +43,15 @@ public: std::string r; try { r = vm[path].as(); - } catch (boost::bad_any_cast &) { + } catch(boost::bad_any_cast &) { // try int try { r = std::to_string(vm[path].as()); - } catch (boost::bad_any_cast &) { + } catch(boost::bad_any_cast &) { // try bool, and crash if not that either r = vm[path].as() ? "true" : "false"; } - } // check if it's a path @@ -65,7 +64,8 @@ public: return std::optional(vm[path].as()); } - const std::vector> & options() { + const std::vector> &options() + { return desc.options(); } -- cgit v1.2.1