mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 12:25:57 +08:00
Remove unneccessary constructors
This commit is contained in:
parent
0bf90ae0af
commit
f4029eaca7
@ -179,11 +179,6 @@ struct TextConfiguration
|
||||
// Embossed text value
|
||||
std::string text = "None";
|
||||
|
||||
TextConfiguration() = default; // optional needs empty constructor
|
||||
TextConfiguration(const FontItem &font_item, const std::string &text)
|
||||
: font_item(font_item), text(text)
|
||||
{}
|
||||
|
||||
// undo / redo stack recovery
|
||||
//template<class Archive> void serialize(Archive &ar){ ar(text, font_item); }
|
||||
};
|
||||
|
@ -2053,7 +2053,7 @@ TextConfiguration GLGizmoEmboss::create_configuration()
|
||||
if (wx_font.has_value())
|
||||
fi.path = WxFontUtils::store_wxFont(*wx_font);
|
||||
}
|
||||
return TextConfiguration(m_font_manager.get_font_item(), m_text);
|
||||
return TextConfiguration{m_font_manager.get_font_item(), m_text};
|
||||
}
|
||||
|
||||
bool GLGizmoEmboss::load_configuration(ModelVolume *volume)
|
||||
|
Loading…
x
Reference in New Issue
Block a user