From 456aa735feaae053488abaeef121ce81f7371fa5 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 16 Oct 2017 22:31:46 +0200 Subject: [PATCH] Add a default initialization for member variables. --- src/surf/network_interface.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index d8a3b0d10a..14a1518462 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -208,10 +208,10 @@ public: void setState(simgrid::surf::Action::State state) override; virtual std::list links(); - double latency_; - double latCurrent_; - double weight_; - double rate_; + double latency_ = {}; + double latCurrent_ = {}; + double weight_ = {}; + double rate_ = {}; }; } } -- 2.20.1