X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fcontent_widget.h;h=1a9c85dde762f9cec226714ea96a3f78156c4897;hb=8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8;hp=d38609cb4b8c1d0e408a00406bf34e705548eead;hpb=4985d87750c87019dfe5dc7ef44e12c45326dd0e;p=dcpomatic.git diff --git a/src/wx/content_widget.h b/src/wx/content_widget.h index d38609cb4..1a9c85dde 100644 --- a/src/wx/content_widget.h +++ b/src/wx/content_widget.h @@ -195,14 +195,14 @@ private: void button_clicked () { U const v = boost::bind (_model_getter, _part(_content.front().get()).get())(); - for (typename List::iterator i = _content.begin (); i != _content.end(); ++i) { - boost::bind (_model_setter, _part(i->get()).get(), v) (); + for (auto const& i: _content) { + boost::bind (_model_setter, _part(i.get()).get(), v)(); } } void model_changed (ChangeType type, int property) { - if (type == CHANGE_TYPE_DONE && property == _property && !_ignore_model_changes) { + if (type == ChangeType::DONE && property == _property && !_ignore_model_changes) { update_from_model (); } }