mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Several minor fixes to Model
This commit is contained in:
parent
6e207d3830
commit
f76e2c2222
6 changed files with 76 additions and 10 deletions
|
@ -250,6 +250,18 @@ ConfigBase::set_deserialize(const t_config_option_key opt_key, SV* str) {
|
|||
}
|
||||
#endif
|
||||
|
||||
DynamicConfig& DynamicConfig::operator= (DynamicConfig other)
|
||||
{
|
||||
this->swap(other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void
|
||||
DynamicConfig::swap(DynamicConfig &other)
|
||||
{
|
||||
std::swap(this->options, other.options);
|
||||
}
|
||||
|
||||
DynamicConfig::~DynamicConfig () {
|
||||
for (t_options_map::iterator it = this->options.begin(); it != this->options.end(); ++it) {
|
||||
ConfigOption* opt = it->second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue