From 2d6b003b4258c92e8de8003155e60e15124a93de Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 4 Oct 2020 20:15:25 +0300 Subject: Fix useless-cast warnings in Configuration --- lib/configuration/test/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/configuration/test/main.cpp') 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 global_conf = std::make_unique>>({ { "name", std::string("global") }, - { "number", int(123) }, - { "toggle", bool(true) }, + { "number", 123 }, + { "toggle", true }, }); -- cgit v1.2.1