Fix build.
authorCarl Hetherington <cth@carlh.net>
Wed, 31 May 2017 15:39:27 +0000 (16:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 31 May 2017 15:39:27 +0000 (16:39 +0100)
test/optimise_stills_test.cc

index 7bd7f3b8543aaf51e9f8ff574fffe7ed3c00f341..b939d29149fd95c28c20da419ce37cf49d7d514d 100644 (file)
@@ -46,7 +46,8 @@ void
 check (string name, int check_full, int check_repeat)
 {
        /* The encoder will have been destroyed so parse the logs */
-       ifstream log ("build/test/" + name + "/log");
+       string log_file = "build/test/" + name + "/log";
+       ifstream log (log_file.c_str());
        string line;
        int repeat = 0;
        int full = 0;