]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Consistently use .reset() to reset m_data in Bytes
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 22 Oct 2025 20:15:44 +0000 (22:15 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 25 Oct 2025 10:03:27 +0000 (12:03 +0200)
src/ccache/util/bytes.cpp

index 3bd1a1d7627bfdffb3342554247822c87b0bc036..7524d991e113612aee163d2dbd0cbbd7e4e36725 100644 (file)
@@ -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;
 }