From d3895264c64b329397e38b3a6a1fc054672f3f55 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 3 Aug 2017 21:58:08 +0200 Subject: [PATCH] Please codacy (delete copy constructor). --- src/include/xbt/parmap.hpp | 1 + src/simdag/simdag_private.hpp | 3 ++- src/xbt/xbt_replay.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/xbt/parmap.hpp b/src/include/xbt/parmap.hpp index f0fbb1dfc4..a47f35f92d 100644 --- a/src/include/xbt/parmap.hpp +++ b/src/include/xbt/parmap.hpp @@ -38,6 +38,7 @@ namespace xbt { template class Parmap { public: Parmap(unsigned num_workers, e_xbt_parmap_mode_t mode); + Parmap(const Parmap&) = delete; ~Parmap(); void apply(void (*fun)(T), const std::vector& data); boost::optional next(); diff --git a/src/simdag/simdag_private.hpp b/src/simdag/simdag_private.hpp index 58d88e7bd0..b5e52f0251 100644 --- a/src/simdag/simdag_private.hpp +++ b/src/simdag/simdag_private.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2015. The SimGrid Team. +/* Copyright (c) 2006-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -21,6 +21,7 @@ namespace sd{ class Global { public: explicit Global(); + Global(const Global&) = delete; ~Global(); bool watch_point_reached; /* has a task just reached a watch point? */ std::set *initial_tasks; diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index 7a35e2fdf8..4c2fec8c09 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -38,6 +38,7 @@ public: fs = new std::ifstream(filename, std::ifstream::in); xbt_assert(fs->is_open(), "Cannot read replay file '%s'", filename); } + ReplayReader(const ReplayReader&) = delete; ~ReplayReader() { delete fs; -- 2.20.1