Skip to content
Snippets Groups Projects
Commit 0dc914cc authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL/Station] Correct copy constr. implementation.

parent 0e45bee8
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,10 @@ Station::Station(Point* coords, std::string name) ...@@ -35,7 +35,10 @@ Station::Station(Point* coords, std::string name)
Station::Station(Station const& src) Station::Station(Station const& src)
: Point(src), : Point(src),
_name(src._name), _name(src._name),
_station_value(src._station_value) _station_value(src._station_value),
_sensor_data(src._sensor_data.get() != nullptr
? new SensorData(*(src._sensor_data.get()))
: nullptr)
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment