diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 11:01:54 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 11:47:19 -0400 |
commit | 973db12fe33bab8e6efca80deca358b4998d5eb2 (patch) | |
tree | 6ae279e5edccdde1ebaf6de9aa4a2706b0a8ec4f /src/Configuration.cpp | |
parent | e2bbec54b3b26173284754b786310fc7d8589ecc (diff) | |
download | ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.gz ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.bz2 ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.zip |
Remove redundant casts
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index ac2b374b..5ee2ad2d 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -157,7 +157,7 @@ Configuration::set_value_from_string(Configuration::Option& option, option.value = _forge.alloc(value.c_str()); assert(option.value.type() == _forge.String); } else if (option.type == _forge.Bool) { - option.value = _forge.make(bool(!strcmp(value.c_str(), "true"))); + option.value = _forge.make(!strcmp(value.c_str(), "true")); assert(option.value.type() == _forge.Bool); } else { throw OptionError(fmt("Bad option type `%1%'", option.name)); |