mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
More efficient syntax for the PrintConfigDef constructor
This commit is contained in:
parent
934bd43e35
commit
e381100812
3 changed files with 1064 additions and 1053 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue