Revert "Enable compatibility with libconfig older than v1.5"

This commit is contained in:
pixl
2020-11-23 15:42:29 -05:00
committed by GitHub
parent 1d6a89881f
commit ec8115634d
13 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ KeypressAction::Config::Config(Device* device, libconfig::Setting& config) :
}
try {
auto &keys = config["keys"];
auto &keys = config.lookup("keys");
if(keys.isArray() || keys.isList()) {
int key_count = keys.getLength();
for(int i = 0; i < key_count; i++) {
@@ -86,4 +86,4 @@ KeypressAction::Config::Config(Device* device, libconfig::Setting& config) :
std::vector<uint>& KeypressAction::Config::keys()
{
return _keys;
}
}