From b6bcbd5660076423cd3dc67e960c38a8b5d0f74b Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Fri, 28 Mar 2025 16:06:13 +0000 Subject: [PATCH] Internals: Fix clang-tidy warnings in DFG (#5893) (#5897) --- src/V3DfgVertices.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/V3DfgVertices.h b/src/V3DfgVertices.h index 728327637..206342384 100644 --- a/src/V3DfgVertices.h +++ b/src/V3DfgVertices.h @@ -196,7 +196,8 @@ public: // Remove undriven sources void packSources() { // Grab and reset the driver data - std::vector driverData{std::move(m_driverData)}; + std::vector driverData; + driverData.swap(m_driverData); // Grab and unlink the sources std::vector sources{arity()}; @@ -255,7 +256,8 @@ public: // Remove undriven sources void packSources() { // Grab and reset the driver data - std::vector driverData{std::move(m_driverData)}; + std::vector driverData; + driverData.swap(m_driverData); // Grab and unlink the sources std::vector sources{arity()};