From d65abeed042004e8d417d70541b5afb5a11bfd5d Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Mon, 14 Sep 2020 14:24:55 -0700 Subject: [PATCH] Use make_shared Signed-off-by: Louise Poubel --- src/PlottingInterface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlottingInterface.cc b/src/PlottingInterface.cc index ce308f968..12eabab4e 100644 --- a/src/PlottingInterface.cc +++ b/src/PlottingInterface.cc @@ -83,7 +83,7 @@ class PlottingIfacePrivate public: Transport transport; /// \brief Plotting time pointer to give access to topics to read it - public: std::shared_ptr plottingTimeRef {new double}; + public: std::shared_ptr plottingTimeRef = std::make_shared(); /// \brief timeout to update the plot with the timer public: int timeout;