use make_tuple instead of make_pair

This commit is contained in:
Joseph Lenox 2018-07-04 16:33:33 -05:00 committed by Joseph Lenox
parent 9dc4343029
commit 4fa9f5ee2a

View File

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