From dba346be7a798acdb94be89150b19e5e9fd78bce Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 8 Jun 2021 19:51:25 +0200 Subject: [PATCH] [partition] Fix build in non-debug settings --- src/modules/partition/core/DeviceList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index f7d1d4835..d58b22868 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -138,7 +138,7 @@ getDevices( DeviceType which ) #else // Safe partitioning auto removeInAllModes = []( DeviceList& l, DeviceList::iterator& it) { return erase(l, it); }; - auto& removeInSafeMode = removeFromAll; + auto& removeInSafeMode = removeInAllModes; #endif cDebug() << "Removing unsuitable devices:" << devices.count() << "candidates.";