summaryrefslogtreecommitdiff
path: root/src/modinforegular.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-27 22:45:42 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-27 22:45:42 +0200
commit700c5fb16c1c4e39fd757998e95ead4a25ecc6da (patch)
tree723e3c3b9d6b72d3fc69b27632adf6e750169eb7 /src/modinforegular.cpp
parent6f22a77cdac588abcb60ac4c45d795b74872c626 (diff)
Store contents as a set instead of a vector.
Diffstat (limited to 'src/modinforegular.cpp')
-rw-r--r--src/modinforegular.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index 8ad7ffe5..8ef8e007 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -653,12 +653,13 @@ std::vector<ModInfo::EFlag> ModInfoRegular::getFlags() const
}
-std::vector<int> ModInfoRegular::doGetContents() const
+std::set<int> ModInfoRegular::doGetContents() const
{
ModDataContent* contentFeature = m_GamePlugin->feature<ModDataContent>();
if (contentFeature) {
- return contentFeature->getContentsFor(contentFileTree());
+ auto result = contentFeature->getContentsFor(contentFileTree());
+ return std::set<int>(std::begin(result), std::end(result));
}
return {};