projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More enum class additions.
[dcpomatic.git]
/
src
/
wx
/
content_widget.h
diff --git
a/src/wx/content_widget.h
b/src/wx/content_widget.h
index d38609cb4b8c1d0e408a00406bf34e705548eead..1a9c85dde762f9cec226714ea96a3f78156c4897 100644
(file)
--- 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())();
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)
{
}
}
void model_changed (ChangeType type, int property)
{
- if (type == C
HANGE_TYPE_
DONE && property == _property && !_ignore_model_changes) {
+ if (type == C
hangeType::
DONE && property == _property && !_ignore_model_changes) {
update_from_model ();
}
}
update_from_model ();
}
}