PetrFlajsingr / pf_imgui

Dear ImGui wrapper along with some other useful libraries.
MIT License
21 stars 3 forks source link

Fix up classes with multiple constructors to only delegate into the main one #237

Closed PetrFlajsingr closed 2 years ago

PetrFlajsingr commented 2 years ago

there are many duplicate implementations:

AnchorLayout::AnchorLayout(AnchorLayout::Config &&config)
    : Layout(std::string{config.name.value}, config.size, config.showBorder ? ShowBorder::Yes : ShowBorder::No) {}

AnchorLayout::AnchorLayout(const std::string &elementName, const Size &initialSize, ShowBorder showBorder)
    : Layout(elementName, initialSize, showBorder) {}