X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayer_stress_tester.cc;h=2593757270a075f10f1c4b4788d23c9ec9705249;hb=4ae33e85fd1ebf1b8255723b0cb98d205a068fca;hp=dfe2d181eb4e3e54803c2ecaf1617bb208e9c28c;hpb=bd7f4bbde17d2087ba4c4bddf6439b3df869b1db;p=dcpomatic.git diff --git a/src/wx/player_stress_tester.cc b/src/wx/player_stress_tester.cc index dfe2d181e..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 + +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();