From: Joel Rosdahl Date: Wed, 22 Oct 2025 20:15:44 +0000 (+0200) Subject: chore: Consistently use .reset() to reset m_data in Bytes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae099e754fa716eb5acd3bbb1b9728bd164a891f;p=thirdparty%2Fccache.git chore: Consistently use .reset() to reset m_data in Bytes --- diff --git a/src/ccache/util/bytes.cpp b/src/ccache/util/bytes.cpp index 3bd1a1d7..7524d991 100644 --- a/src/ccache/util/bytes.cpp +++ b/src/ccache/util/bytes.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2022-2024 Joel Rosdahl and other contributors +// Copyright (C) 2022-2025 Joel Rosdahl and other contributors // // See doc/authors.adoc for a complete list of contributors. // @@ -37,7 +37,7 @@ Bytes::Bytes(Bytes&& other) noexcept m_size(other.m_size), m_capacity(other.m_capacity) { - other.m_data = nullptr; + other.m_data.reset(); other.m_size = 0; other.m_capacity = 0; }