mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 05:35:52 +08:00
use make_tuple instead of make_pair
This commit is contained in:
parent
9dc4343029
commit
4fa9f5ee2a
@ -324,7 +324,7 @@ protected:
|
|||||||
|
|
||||||
void _on_change(std::string opt_id) override {
|
void _on_change(std::string opt_id) override {
|
||||||
if (!this->disable_change_event && this->_ctrl_x->IsEnabled() && this->on_change != nullptr) {
|
if (!this->disable_change_event && this->_ctrl_x->IsEnabled() && this->on_change != nullptr) {
|
||||||
this->on_change(opt_id, std::make_pair<std::string, std::string>(_ctrl_x->GetValue().ToStdString(), _ctrl_y->GetValue().ToStdString()));
|
this->on_change(opt_id, std::make_tuple<std::string, std::string>(_ctrl_x->GetValue().ToStdString(), _ctrl_y->GetValue().ToStdString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user