YAGNI - sizer-types don't need a passed-in window ID.

This commit is contained in:
Joseph Lenox 2018-07-04 15:52:46 -05:00 committed by Joseph Lenox
parent e337c5ad89
commit 3d52dd53ad
2 changed files with 3 additions and 3 deletions

View File

@ -294,7 +294,7 @@ private:
class UI_Point : public UI_Sizer {
public:
UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt, wxWindowID id = wxID_ANY);
UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt);
~UI_Point() { _lbl_x->Destroy(); _lbl_y->Destroy(); _ctrl_x->Destroy(); _ctrl_y->Destroy(); }
std::string get_string();

View File

@ -56,7 +56,7 @@ void UI_Point::_set_value(std::string value) {
}
UI_Point::UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt, wxWindowID id) : UI_Sizer(_parent, _opt) {
UI_Point::UI_Point(wxWindow* _parent, Slic3r::ConfigOptionDef _opt) : UI_Sizer(_parent, _opt) {
Slic3r::Pointf def_val {_opt.default_value == nullptr ? Pointf() : Pointf(*(dynamic_cast<ConfigOptionPoint*>(_opt.default_value))) };
this->_ctrl_x = new wxTextCtrl(parent, wxID_ANY, trim_zeroes(wxString::FromDouble(def_val.x)), wxDefaultPosition, this->field_size, wxTE_PROCESS_ENTER);