mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
More efficient syntax for the PrintConfigDef constructor
This commit is contained in:
@@ -28,6 +28,14 @@ ConfigDef::~ConfigDef()
|
||||
}
|
||||
}
|
||||
|
||||
ConfigOptionDef*
|
||||
ConfigDef::add(const t_config_option_key &opt_key, ConfigOptionType type)
|
||||
{
|
||||
ConfigOptionDef* opt = &this->options[opt_key];
|
||||
opt->type = type;
|
||||
return opt;
|
||||
}
|
||||
|
||||
const ConfigOptionDef*
|
||||
ConfigDef::get(const t_config_option_key &opt_key) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user