mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Oh those compiler differences.
This commit is contained in:
@@ -1009,8 +1009,8 @@ public:
|
|||||||
TYPE* option(const t_config_option_key &opt_key, bool create = false)
|
TYPE* option(const t_config_option_key &opt_key, bool create = false)
|
||||||
{
|
{
|
||||||
ConfigOption *opt = this->optptr(opt_key, create);
|
ConfigOption *opt = this->optptr(opt_key, create);
|
||||||
assert(opt == nullptr || opt->type() == typename TYPE::static_type());
|
assert(opt == nullptr || opt->type() == TYPE::static_type());
|
||||||
return (opt == nullptr || opt->type() != typename TYPE::static_type()) ? nullptr : static_cast<TYPE*>(opt);
|
return (opt == nullptr || opt->type() != TYPE::static_type()) ? nullptr : static_cast<TYPE*>(opt);
|
||||||
}
|
}
|
||||||
template<typename TYPE>
|
template<typename TYPE>
|
||||||
const TYPE* option(const t_config_option_key &opt_key) const
|
const TYPE* option(const t_config_option_key &opt_key) const
|
||||||
|
|||||||
Reference in New Issue
Block a user