From 6114c472a8bfc19d0b1c6048b1eed70424e98013 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Tue, 18 Jun 2024 03:10:03 -0500 Subject: [PATCH] Data types --- src/modinfowithconflictinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modinfowithconflictinfo.cpp b/src/modinfowithconflictinfo.cpp index 49b9dd062..9bc2f4818 100644 --- a/src/modinfowithconflictinfo.cpp +++ b/src/modinfowithconflictinfo.cpp @@ -99,13 +99,13 @@ ModInfoWithConflictInfo::Conflicts ModInfoWithConflictInfo::doConflictCheck() co bool providesAnything = false; bool hasHiddenFiles = false; - QList dataIDs; + std::unordered_set dataIDs; if (m_Core.directoryStructure()->originExists(L"data")) { - dataIDs.append(m_Core.directoryStructure()->getOriginByName(L"data").getID()); + dataIDs.insert(m_Core.directoryStructure()->getOriginByName(L"data").getID()); } - for (auto origin : m_Core.managedGame()->secondaryDataDirectories().keys()) { + for (const auto& origin : m_Core.managedGame()->secondaryDataDirectories().keys()) { if (m_Core.directoryStructure()->originExists(origin.toStdWString())) { - dataIDs.append( + dataIDs.insert( m_Core.directoryStructure()->getOriginByName(origin.toStdWString()).getID()); } }