Using move setter for config file

This commit is contained in:
Bob Polis 2021-10-06 14:50:52 +02:00
parent 06047e6f0c
commit 332e311de0

View File

@ -181,7 +181,7 @@ int main(int argc, const char * argv[]) {
std::cerr << "screensaver: reading config file " << config_path << '\n';
nlohmann::json j;
config_file >> j;
main_saver->config(j);
main_saver->config(std::move(j));
}
sc::gui::app().fps(main_saver->fps());