1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Eliminates make_unique as this is presently a C++11 project.

This commit is contained in:
Thomas Harte 2018-07-15 22:52:36 -04:00
parent 29f7f4d432
commit 24b861f056

View File

@ -105,7 +105,8 @@ class ActivityObserver: public Activity::Observer {
const float right_x = 1.0f - 2.0f * width;
float y = 1.0f - 2.0f * height;
for(const auto &drive: drives_) {
lights_.emplace(std::make_pair(drive, std::make_unique<OpenGL::Rectangle>(right_x, y, width, height)));
// TODO: use std::make_unique as below, if/when formally embracing C++14.
lights_.emplace(std::make_pair(drive, std::unique_ptr<OpenGL::Rectangle>(new OpenGL::Rectangle(right_x, y, width, height))));
y -= height * 2.0f;
}