Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a default initialization for member variables.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 20:31:46 +0000 (22:31 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 20:47:29 +0000 (22:47 +0200)
src/surf/network_interface.hpp

index d8a3b0d..14a1518 100644 (file)
@@ -208,10 +208,10 @@ public:
   void setState(simgrid::surf::Action::State state) override;
   virtual std::list<LinkImpl*> links();
 
-  double latency_;
-  double latCurrent_;
-  double weight_;
-  double rate_;
+  double latency_    = {};
+  double latCurrent_ = {};
+  double weight_     = {};
+  double rate_       = {};
 };
 }
 }