diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-04 20:15:25 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-04 20:15:25 +0300 |
commit | 2d6b003b4258c92e8de8003155e60e15124a93de (patch) | |
tree | 98007d9430747796c777f4943382982e6cae4024 /lib/configuration | |
parent | Remove Breakpad optdepend (diff) | |
download | smolbote-2d6b003b4258c92e8de8003155e60e15124a93de.tar.xz |
Fix useless-cast warnings in Configuration
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/test/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/configuration/test/main.cpp b/lib/configuration/test/main.cpp index 06f7cb0..d83f7af 100644 --- a/lib/configuration/test/main.cpp +++ b/lib/configuration/test/main.cpp @@ -17,16 +17,16 @@ SCENARIO("Configuration") { "other", std::string("not in cfg") }, // commented out entry in the conf file { "comment", std::string("123.456") }, - { "number", int(0) }, - { "toggle", bool(false) }, + { "number", 0 }, + { "toggle", false }, { "main/name", std::string() }, - { "main/number", int(0) }, - { "main/toggle", bool(true) }, + { "main/number", 0 }, + { "main/toggle", true }, { "extra/name", std::string() }, - { "extra/number", int(0) }, - { "extra/toggle", bool(false) }, + { "extra/number", 0 }, + { "extra/toggle", false }, }; WHEN("reading default values") @@ -132,8 +132,8 @@ SCENARIO("Configuration") { std::unique_ptr<Configuration> global_conf = std::make_unique<Configuration, std::initializer_list<std::pair<std::string, conf_value_t>>>({ { "name", std::string("global") }, - { "number", int(123) }, - { "toggle", bool(true) }, + { "number", 123 }, + { "toggle", true }, }); |