mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
@@ -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_;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user