From ae099e754fa716eb5acd3bbb1b9728bd164a891f Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 22 Oct 2025 22:15:44 +0200 Subject: [PATCH] chore: Consistently use .reset() to reset m_data in Bytes --- src/ccache/util/bytes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3