forked from qt-creator/qt-creator
ProcessReaper: Simplify takeReaperSetupList()
Change-Id: I1904a8e94ebee608e2fdffd888799a45399ac4a2 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -167,9 +167,7 @@ private:
|
||||
QList<ReaperSetup> takeReaperSetupList()
|
||||
{
|
||||
QMutexLocker locker(&m_mutex);
|
||||
const QList<ReaperSetup> reaperSetupList = m_reaperSetupList;
|
||||
m_reaperSetupList.clear();
|
||||
return reaperSetupList;
|
||||
return std::exchange(m_reaperSetupList, {});
|
||||
}
|
||||
|
||||
void flush()
|
||||
|
||||
Reference in New Issue
Block a user