From 0dc914cc385fe517971f90abb891fbbab586b15f Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 1 Jul 2021 14:33:01 +0200 Subject: [PATCH] [GL/Station] Correct copy constr. implementation. --- GeoLib/Station.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GeoLib/Station.cpp b/GeoLib/Station.cpp index beffd59647c..a7586ecdb45 100644 --- a/GeoLib/Station.cpp +++ b/GeoLib/Station.cpp @@ -35,7 +35,10 @@ Station::Station(Point* coords, std::string name) Station::Station(Station const& src) : Point(src), _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) { } -- GitLab