Fixed some compiler warnings

This commit is contained in:
Vojtech Bubnik 2023-01-04 16:41:42 +01:00
parent f5662458a2
commit 479a39ce0e
9 changed files with 41 additions and 36 deletions

View file

@ -749,7 +749,7 @@ std::pair<Preset*, bool> PresetCollection::load_external_preset(
{
// Load the preset over a default preset, so that the missing fields are filled in from the default preset.
DynamicPrintConfig cfg(this->default_preset_for(combined_config).config);
t_config_option_keys keys = std::move(cfg.keys());
t_config_option_keys keys = cfg.keys();
cfg.apply_only(combined_config, keys, true);
std::string &inherits = Preset::inherits(cfg);
if (select == LoadAndSelect::Never) {