mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 06:06:53 +01:00
Adjust the setter the PluginContainer to use const values
This commit is contained in:
parent
592ecf8eed
commit
1917ff9fb4
@ -188,7 +188,7 @@ std::vector<PluginContainer> PluginManagement::loadPlugins(const std::vector<Plu
|
||||
if (metaInfo) {
|
||||
PluginContainer container;
|
||||
container.setMetaInformation(metaInfo.value());
|
||||
container.setPluginData(const_cast<PluginData &>(pluginData));
|
||||
container.setPluginData(pluginData);
|
||||
plugins.push_back(container);
|
||||
} else {
|
||||
DEBUG_FUNCTION_LINE("Failed to get meta information");
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
return this->metaInformation;
|
||||
}
|
||||
|
||||
void setMetaInformation(PluginMetaInformation &metaInfo) {
|
||||
void setMetaInformation(const PluginMetaInformation &metaInfo) {
|
||||
this->metaInformation = metaInfo;
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ public:
|
||||
return pluginInformation;
|
||||
}
|
||||
|
||||
void setPluginInformation(PluginInformation &pluginInformation) {
|
||||
void setPluginInformation(const PluginInformation &pluginInformation) {
|
||||
this->pluginInformation = pluginInformation;
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public:
|
||||
return pluginData;
|
||||
}
|
||||
|
||||
void setPluginData(PluginData &pluginData) {
|
||||
void setPluginData(const PluginData &pluginData) {
|
||||
this->pluginData = pluginData;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user