Config: Migrated to libshared Configuration

This commit is contained in:
Paul Beckingham 2017-02-26 10:46:51 -05:00
parent a31434fd48
commit dd4fef6794
9 changed files with 19 additions and 125 deletions

View file

@ -1071,9 +1071,7 @@ void Context::staticInitialization ()
Task::urgencyAgeMax = config.getReal ("urgency.age.max");
// Tag- and project-specific coefficients.
std::vector <std::string> all;
config.all (all);
for (auto& var : all)
for (auto& var : config.all ())
if (var.substr (0, 13) == "urgency.user." ||
var.substr (0, 12) == "urgency.uda.")
Task::coefficients[var] = config.getReal (var);