X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdkdm_output_panel.cc;h=9eb3084e3c999f323893d95fa369a5bc66c72d41;hb=82b08e910e07bb571b11368124d49dc3d73e33ca;hp=3f8730ae3a06e108c3d54866eac0d3236dddd933;hpb=3e96f929fdf740f414b114c5d9765e22fcc46de6;p=dcpomatic.git diff --git a/src/wx/dkdm_output_panel.cc b/src/wx/dkdm_output_panel.cc index 3f8730ae3..9eb3084e3 100644 --- a/src/wx/dkdm_output_panel.cc +++ b/src/wx/dkdm_output_panel.cc @@ -18,31 +18,40 @@ */ -#include "lib/config.h" -#include "lib/send_kdm_email_job.h" + +#include "check_box.h" +#include "confirm_kdm_email_dialog.h" +#include "dcpomatic_button.h" #include "dkdm_output_panel.h" #include "kdm_timing_panel.h" -#include "confirm_kdm_email_dialog.h" -#include "wx_util.h" #include "name_format_editor.h" -#include "check_box.h" -#include "dcpomatic_button.h" +#include "wx_util.h" +#include "lib/config.h" +#include "lib/send_kdm_email_job.h" #include #include +#include + #ifdef DCPOMATIC_USE_OWN_PICKER #include "dir_picker_ctrl.h" #else +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS #endif + +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS + -using std::pair; -using std::string; -using std::list; using std::exception; +using std::function; +using std::list; using std::make_pair; -using boost::shared_ptr; -using boost::function; +using std::pair; +using std::shared_ptr; +using std::string; DKDMOutputPanel::DKDMOutputPanel (wxWindow* parent) @@ -116,7 +125,7 @@ DKDMOutputPanel::make ( } bool kdms_with_no_email = false; - BOOST_FOREACH (KDMWithMetadataPtr i, kdms) { + for (auto i: kdms) { if (i->emails().empty()) { kdms_with_no_email = true; } @@ -131,8 +140,8 @@ DKDMOutputPanel::make ( if (proceed && Config::instance()->confirm_kdm_email()) { list emails; - BOOST_FOREACH (KDMWithMetadataPtr const& i, kdms) { - BOOST_FOREACH (string j, i->emails()) { + for (auto const& i: kdms) { + for (auto j: i->emails()) { emails.push_back (j); } } @@ -169,7 +178,8 @@ DKDMOutputPanel::make ( kdms, _filename_format->get(), _filename_format->get(), - name + name, + {} ) ); }