Skip to content

Commit

Permalink
Use make_shared
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Sep 14, 2020
1 parent a3487b4 commit d65abee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlottingInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<double> plottingTimeRef {new double};
public: std::shared_ptr<double> plottingTimeRef = std::make_shared<double>();

/// \brief timeout to update the plot with the timer
public: int timeout;
Expand Down

0 comments on commit d65abee

Please sign in to comment.