From 7e3e16d8035fc2a2a6c435fd3fda976a89d40dd5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 17 Mar 2021 11:38:00 -0400 Subject: [PATCH] fix cppcheck warning --- common/include/villas/graph/directed.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/include/villas/graph/directed.hpp b/common/include/villas/graph/directed.hpp index e24ae69bb..646022969 100644 --- a/common/include/villas/graph/directed.hpp +++ b/common/include/villas/graph/directed.hpp @@ -50,10 +50,10 @@ public: using Path = std::list; DirectedGraph(const std::string &name = "DirectedGraph") : - lastVertexId(0), lastEdgeId(0) - { - logger = logging.get(name); - } + lastVertexId(0), + lastEdgeId(0), + logger(logging.get(name)) + { } std::shared_ptr getVertex(VertexIdentifier vertexId) const {