mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Tidy up PluginSortingData construction
This commit is contained in:
@@ -49,9 +49,6 @@ std::vector<const PluginInterface*> GetPluginsSubset(
|
||||
return pluginsSubset;
|
||||
}
|
||||
|
||||
PluginSortingData::PluginSortingData() :
|
||||
plugin_(nullptr), numOverrideFormIDs(0) {}
|
||||
|
||||
PluginSortingData::PluginSortingData(
|
||||
const PluginSortingInterface* plugin,
|
||||
const PluginMetadata& masterlistMetadata,
|
||||
@@ -63,8 +60,7 @@ PluginSortingData::PluginSortingData(
|
||||
masterlistLoadAfter_(masterlistMetadata.GetLoadAfterFiles()),
|
||||
userLoadAfter_(userMetadata.GetLoadAfterFiles()),
|
||||
masterlistReq_(masterlistMetadata.GetRequirements()),
|
||||
userReq_(userMetadata.GetRequirements()),
|
||||
numOverrideFormIDs(0) {
|
||||
userReq_(userMetadata.GetRequirements()) {
|
||||
if (userMetadata.GetGroup()) {
|
||||
group_ = userMetadata.GetGroup().value();
|
||||
} else if (masterlistMetadata.GetGroup()) {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
namespace loot {
|
||||
class PluginSortingData {
|
||||
public:
|
||||
explicit PluginSortingData();
|
||||
explicit PluginSortingData() = default;
|
||||
|
||||
/**
|
||||
* This stores a copy of the plugin pointer that is passed to it, so
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
const std::optional<size_t>& GetLoadOrderIndex() const;
|
||||
|
||||
private:
|
||||
const PluginSortingInterface* plugin_;
|
||||
const PluginSortingInterface* plugin_{nullptr};
|
||||
std::string group_;
|
||||
std::unordered_set<std::string> afterGroupPlugins_;
|
||||
|
||||
@@ -76,7 +76,7 @@ private:
|
||||
std::vector<File> userReq_;
|
||||
|
||||
std::optional<size_t> loadOrderIndex_;
|
||||
size_t numOverrideFormIDs;
|
||||
size_t numOverrideFormIDs{0};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user