X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fcontent_properties_dialog.cc;h=2e0e360d98cbbc8016a2487067a1fe3a29d671b2;hp=bf1f67ace40c5b8fc0649b06a8fe52ea1b74dc3f;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc index bf1f67ace..2e0e360d9 100644 --- a/src/wx/content_properties_dialog.cc +++ b/src/wx/content_properties_dialog.cc @@ -25,7 +25,6 @@ #include "lib/video_content.h" #include "lib/audio_content.h" #include -#include using std::string; using std::list; @@ -38,7 +37,7 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr > grouped; - BOOST_FOREACH (UserProperty i, content->user_properties(film)) { + for (auto i: content->user_properties(film)) { if (grouped.find(i.category) == grouped.end()) { grouped[i.category] = list (); } @@ -91,7 +90,7 @@ ContentPropertiesDialog::maybe_add_group (mapsecond) { + for (auto j: i->second) { add (std_to_wx (j.key), true); add (new StaticText (this, std_to_wx (j.value + " " + j.unit))); }