Remove unneccessary constructors

This commit is contained in:
Filip Sykala 2022-03-30 19:51:09 +02:00
parent 0bf90ae0af
commit f4029eaca7
2 changed files with 1 additions and 6 deletions

View File

@ -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); }
};

View File

@ -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)