Internals: Fix clang-tidy warnings in DFG (#5893) (#5897)

This commit is contained in:
Geza Lore
2025-03-28 12:06:13 -04:00
committed by GitHub
parent ed1e3ec4a2
commit b6bcbd5660
+4 -2
View File
@@ -196,7 +196,8 @@ public:
// Remove undriven sources
void packSources() {
// Grab and reset the driver data
std::vector<DriverData> driverData{std::move(m_driverData)};
std::vector<DriverData> driverData;
driverData.swap(m_driverData);
// Grab and unlink the sources
std::vector<DfgVertex*> sources{arity()};
@@ -255,7 +256,8 @@ public:
// Remove undriven sources
void packSources() {
// Grab and reset the driver data
std::vector<DriverData> driverData{std::move(m_driverData)};
std::vector<DriverData> driverData;
driverData.swap(m_driverData);
// Grab and unlink the sources
std::vector<DfgVertex*> sources{arity()};