X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayer_stress_tester.cc;h=2593757270a075f10f1c4b4788d23c9ec9705249;hb=4ae33e85fd1ebf1b8255723b0cb98d205a068fca;hp=726db2a70b9144578ed6c1acee37e6ba5049c4c1;hpb=652a6467fdc4e562fe9166d491f4ca9848e37abb;p=dcpomatic.git diff --git a/src/wx/player_stress_tester.cc b/src/wx/player_stress_tester.cc index 726db2a70..259375727 100644 --- a/src/wx/player_stress_tester.cc +++ b/src/wx/player_stress_tester.cc @@ -18,27 +18,33 @@ */ -#include "player_stress_tester.h" + #include "controls.h" +#include "player_stress_tester.h" #include #include +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS #include -#include -#include +#include +#include #include #include -#include + +using std::cout; using std::string; using std::vector; -using std::cout; using dcp::raw_convert; using boost::optional; + /* Interval to check for things to do with the stress script (in milliseconds) */ #define CHECK_INTERVAL 20 + Command::Command (string line) : type (NONE) , int_param (0) @@ -99,7 +105,7 @@ PlayerStressTester::load_script (boost::filesystem::path file) vector lines; string const script = dcp::file_to_string(file); boost::split (lines, script, boost::is_any_of("\n")); - BOOST_FOREACH (string i, lines) { + for (auto i: lines) { _commands.push_back (Command(i)); } _current_command = _commands.begin();