From 06520e89bdcf6b3cbeb4ad0a006ca2ec5cfb1a5d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 8 Jul 2018 11:27:18 +0200 Subject: [PATCH] I forgot once again to mark my constructors as explicit. thx sonar --- src/kernel/routing/DijkstraZone.cpp | 2 +- src/surf/cpu_ti.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/routing/DijkstraZone.cpp b/src/kernel/routing/DijkstraZone.cpp index 54396c5492..1c5833652b 100644 --- a/src/kernel/routing/DijkstraZone.cpp +++ b/src/kernel/routing/DijkstraZone.cpp @@ -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 */ }; diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index b81507b6b8..014789a0fc 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -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; -- 2.20.1