Make PluginMetadata::GetTags() 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:04 +01:00
parent 8dbbb55ecc
commit eeff7a9283
7 changed files with 19 additions and 29 deletions
+3 -3
View File
@@ -124,7 +124,7 @@ public:
* Get the plugin's Bash Tag suggestions.
* @return The plugin's Bash Tag suggestions.
*/
LOOT_API std::set<Tag> GetTags() const;
LOOT_API std::vector<Tag> GetTags() const;
/**
* Get the plugin's dirty plugin information.
@@ -198,7 +198,7 @@ public:
* @param tags
* The Bash Tag suggestions to set.
*/
LOOT_API void SetTags(const std::set<Tag>& tags);
LOOT_API void SetTags(const std::vector<Tag>& tags);
/**
* Set the plugin's dirty information.
@@ -272,7 +272,7 @@ private:
std::vector<File> requirements_;
std::vector<File> incompatibilities_;
std::vector<Message> messages_;
std::set<Tag> tags_;
std::vector<Tag> tags_;
std::set<PluginCleaningData> dirtyInfo_;
std::set<PluginCleaningData> cleanInfo_;
std::set<Location> locations_;