mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 07:25:52 +08:00
More efficient syntax for the PrintConfigDef constructor
This commit is contained in:
parent
934bd43e35
commit
e381100812
@ -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*
|
const ConfigOptionDef*
|
||||||
ConfigDef::get(const t_config_option_key &opt_key) const
|
ConfigDef::get(const t_config_option_key &opt_key) const
|
||||||
{
|
{
|
||||||
|
@ -537,6 +537,7 @@ class ConfigDef
|
|||||||
public:
|
public:
|
||||||
t_optiondef_map options;
|
t_optiondef_map options;
|
||||||
~ConfigDef();
|
~ConfigDef();
|
||||||
|
ConfigOptionDef* add(const t_config_option_key &opt_key, ConfigOptionType type);
|
||||||
const ConfigOptionDef* get(const t_config_option_key &opt_key) const;
|
const ConfigOptionDef* get(const t_config_option_key &opt_key) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user