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

This commit is contained in:
Geza Lore 2025-03-28 16:06:13 +00:00 committed by GitHub
parent ed1e3ec4a2
commit b6bcbd5660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

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()};