Using move setter for config file
This commit is contained in:
parent
06047e6f0c
commit
332e311de0
2
main.cpp
2
main.cpp
@ -181,7 +181,7 @@ int main(int argc, const char * argv[]) {
|
|||||||
std::cerr << "screensaver: reading config file " << config_path << '\n';
|
std::cerr << "screensaver: reading config file " << config_path << '\n';
|
||||||
nlohmann::json j;
|
nlohmann::json j;
|
||||||
config_file >> j;
|
config_file >> j;
|
||||||
main_saver->config(j);
|
main_saver->config(std::move(j));
|
||||||
}
|
}
|
||||||
|
|
||||||
sc::gui::app().fps(main_saver->fps());
|
sc::gui::app().fps(main_saver->fps());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user