From 7adce36016f58eea460d632794b4ba90e6993343 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 8 Aug 2016 13:57:14 +0200 Subject: [PATCH] please sonar using C++11 constructs --- include/xbt/exception.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/xbt/exception.hpp b/include/xbt/exception.hpp index 4391ffec6d..9be76a2be6 100644 --- a/include/xbt/exception.hpp +++ b/include/xbt/exception.hpp @@ -40,8 +40,9 @@ typedef std::vector Backtrace; * * @ingroup XBT_ex */ -struct ThrowPoint { - ThrowPoint() {} +class ThrowPoint { + public: + ThrowPoint() = default; ThrowPoint(const char* file, int line, const char* function) : file(file), line(line), function(function) {} const char* file = nullptr; -- 2.20.1