Skip to content

Commit

Permalink
Data types
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Jun 18, 2024
1 parent 366e94e commit 6114c47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modinfowithconflictinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ ModInfoWithConflictInfo::Conflicts ModInfoWithConflictInfo::doConflictCheck() co
bool providesAnything = false;
bool hasHiddenFiles = false;

QList<int> dataIDs;
std::unordered_set<int> 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());
}
}
Expand Down

0 comments on commit 6114c47

Please sign in to comment.