X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a64ba4381f5fe7d2a7d1a849de233d9c500a4b6..c2184f1318115fcea2571f738e8359044bc78d42:/src/mc/ChunkedData.hpp diff --git a/src/mc/ChunkedData.hpp b/src/mc/ChunkedData.hpp index a739fea203..52b56c9a55 100644 --- a/src/mc/ChunkedData.hpp +++ b/src/mc/ChunkedData.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2018. 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. */ @@ -37,7 +37,7 @@ public: ChunkedData() = default; void clear() { - for (std::size_t pageno : pagenos_) + for (std::size_t const& pageno : pagenos_) store_->unref_page(pageno); pagenos_.clear(); } @@ -51,7 +51,7 @@ public: : store_ (that.store_) , pagenos_(that.pagenos_) { - for (std::size_t pageno : pagenos_) + for (std::size_t const& pageno : pagenos_) store_->ref_page(pageno); } ChunkedData(ChunkedData&& that) @@ -66,7 +66,7 @@ public: this->clear(); store_ = that.store_; pagenos_ = that.pagenos_; - for (std::size_t pageno : pagenos_) + for (std::size_t const& pageno : pagenos_) store_->ref_page(pageno); return *this; }