X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/341cb255f174254622d3ab6c52dd6d3256b46465..d3cb667dd14c2ff2df69c389ebecc47e80c2237f:/src/mc/LocationList.hpp diff --git a/src/mc/LocationList.hpp b/src/mc/LocationList.hpp index da1af221ce..58b9fe24b8 100644 --- a/src/mc/LocationList.hpp +++ b/src/mc/LocationList.hpp @@ -38,9 +38,7 @@ public: LocationListEntry(DwarfExpression expression, range_type range) : expression_(std::move(expression)), range_(range) {} - LocationListEntry(DwarfExpression expression) - : expression_(std::move(expression)), range_({0, UINT64_MAX}) - {} + LocationListEntry(DwarfExpression expression) : expression_(std::move(expression)), range_({0, UINT64_MAX}) {} DwarfExpression& expression() { @@ -67,9 +65,8 @@ private: void* memory_; int register_id_; public: - Location(void* x) :memory_(x) {} - Location(int register_id) : - memory_(nullptr), register_id_(register_id) {} + explicit Location(void* x) : memory_(x) {} + explicit Location(int register_id) : memory_(nullptr), register_id_(register_id) {} // Type of location: bool in_register() const { return memory_ == nullptr; } bool in_memory() const { return memory_ != nullptr; }