diff --git a/lib/core/include/av-speech-in-noise/core/EyeTrackerCalibration.hpp b/lib/core/include/av-speech-in-noise/core/EyeTrackerCalibration.hpp index b276d8e4..04b21cd2 100644 --- a/lib/core/include/av-speech-in-noise/core/EyeTrackerCalibration.hpp +++ b/lib/core/include/av-speech-in-noise/core/EyeTrackerCalibration.hpp @@ -19,7 +19,7 @@ struct Result { Point point{}; }; -void write(std::ostream &, std::vector &); +void write(std::ostream &, const std::vector &); class Interactor { public: diff --git a/lib/core/src/EyeTrackerCalibration.cpp b/lib/core/src/EyeTrackerCalibration.cpp index 2860bd8f..482b218a 100644 --- a/lib/core/src/EyeTrackerCalibration.cpp +++ b/lib/core/src/EyeTrackerCalibration.cpp @@ -23,7 +23,7 @@ static void write(std::ostream &stream, const std::vector &v) { stream << ']'; } -void write(std::ostream &stream, std::vector &v) { +void write(std::ostream &stream, const std::vector &v) { stream << "Point|Left|Right\n"; for (const auto &result : v) { stream << '['; diff --git a/macos/main/with-tobii.mm b/macos/main/with-tobii.mm index c80ac57b..1f0d1bc5 100644 --- a/macos/main/with-tobii.mm +++ b/macos/main/with-tobii.mm @@ -424,8 +424,9 @@ static void initialize(TobiiProTracker &tracker, validationSubjectPresenter, validationTesterPresenter, validator, {{0.5, 0.5}, {0.3F, 0.3F}, {0.3F, 0.7F}, {0.7F, 0.3F}, {0.7F, 0.7F}}}; static auto calibrator{tracker.calibrator()}; + static NaiveResultsWriter resultsWriter; static InteractorImpl interactor{subjectPresenter, testerPresenter, - calibrator, + calibrator, resultsWriter, {{0.5, 0.5}, {0.1F, 0.1F}, {0.1F, 0.9F}, {0.9F, 0.1F}, {0.9F, 0.9F}}}; static Controller controller{testerUI, interactor}; static validation::Controller validationController{