Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explicitly use default ctor/dtor.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 11:32:23 +0000 (13:32 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 12:00:04 +0000 (14:00 +0200)
src/mc/LocationList.hpp
src/mc/checker/Checker.cpp
src/mc/checker/Checker.hpp

index 5fa74b3..8e4aee3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2015. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2017. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -33,7 +33,7 @@ private:
   // By default, the expression is always valid:
   range_type range_ = {0, UINT64_MAX};
 public:
-  LocationListEntry() {}
+  LocationListEntry() = default;
   LocationListEntry(DwarfExpression expression, range_type range)
     : expression_(std::move(expression)), range_(range)
   {}
index 1476c24..6f44f0c 100644 (file)
@@ -21,9 +21,5 @@ Checker::Checker(Session& session) : session_(&session)
   mc_model_checker->setChecker(this);
 }
 
-Checker::~Checker()
-{
-}
-
 }
 }
index 417c085..d69ba24 100644 (file)
@@ -40,7 +40,7 @@ public:
   Checker(Checker const&) = delete;
   Checker& operator=(Checker const&) = delete;
 
-  virtual ~Checker();
+  virtual ~Checker() = default;
 
   /** Main function of this algorithm */
   virtual void run() = 0;