Make PluginMetadata::GetLocations() return a std::vector

The collection is only ever iterated over, and the uniqueness and
ordering don't matter.
This commit is contained in:
Oliver Hamlet
2020-07-11 19:14:05 +01:00
parent d5881047cc
commit 14bdbe1fdf
4 changed files with 15 additions and 19 deletions
+3 -3
View File
@@ -142,7 +142,7 @@ public:
* Get the locations at which this plugin can be found.
* @return The locations at which this plugin can be found.
*/
LOOT_API std::set<Location> GetLocations() const;
LOOT_API std::vector<Location> GetLocations() const;
/**
* Get the plugin's messages as SimpleMessage objects for the given language.
@@ -219,7 +219,7 @@ public:
* @param locations
* The locations to set.
*/
LOOT_API void SetLocations(const std::set<Location>& locations);
LOOT_API void SetLocations(const std::vector<Location>& locations);
/**
* Check if no plugin metadata is set.
@@ -275,7 +275,7 @@ private:
std::vector<Tag> tags_;
std::vector<PluginCleaningData> dirtyInfo_;
std::vector<PluginCleaningData> cleanInfo_;
std::set<Location> locations_;
std::vector<Location> locations_;
};
}