Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I forgot once again to mark my constructors as explicit. thx sonar
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 8 Jul 2018 09:27:18 +0000 (11:27 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 8 Jul 2018 09:27:18 +0000 (11:27 +0200)
src/kernel/routing/DijkstraZone.cpp
src/surf/cpu_ti.hpp

index 54396c5..1c58336 100644 (file)
@@ -21,7 +21,7 @@ namespace routing {
 
 class GraphNodeData {
 public:
-  GraphNodeData(int id) : id_(id) {}
+  explicit GraphNodeData(int id) : id_(id) {}
   int id_;
   int graph_id_ = -1; /* used for caching internal graph id's */
 };
index b81507b..014789a 100644 (file)
@@ -47,7 +47,7 @@ class CpuTiTmgr {
   };
 
 public:
-  CpuTiTmgr(double value) : type_(Type::FIXED), value_(value){};
+  explicit CpuTiTmgr(double value) : type_(Type::FIXED), value_(value){};
   CpuTiTmgr(tmgr_trace_t speed_trace, double value);
   CpuTiTmgr(const CpuTiTmgr&) = delete;
   CpuTiTmgr& operator=(const CpuTiTmgr&) = delete;