mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-22 04:39:17 +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) {
|
if (metaInfo) {
|
||||||
PluginContainer container;
|
PluginContainer container;
|
||||||
container.setMetaInformation(metaInfo.value());
|
container.setMetaInformation(metaInfo.value());
|
||||||
container.setPluginData(const_cast<PluginData &>(pluginData));
|
container.setPluginData(pluginData);
|
||||||
plugins.push_back(container);
|
plugins.push_back(container);
|
||||||
} else {
|
} else {
|
||||||
DEBUG_FUNCTION_LINE("Failed to get meta information");
|
DEBUG_FUNCTION_LINE("Failed to get meta information");
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
return this->metaInformation;
|
return this->metaInformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setMetaInformation(PluginMetaInformation &metaInfo) {
|
void setMetaInformation(const PluginMetaInformation &metaInfo) {
|
||||||
this->metaInformation = metaInfo;
|
this->metaInformation = metaInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ public:
|
|||||||
return pluginInformation;
|
return pluginInformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPluginInformation(PluginInformation &pluginInformation) {
|
void setPluginInformation(const PluginInformation &pluginInformation) {
|
||||||
this->pluginInformation = pluginInformation;
|
this->pluginInformation = pluginInformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ public:
|
|||||||
return pluginData;
|
return pluginData;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPluginData(PluginData &pluginData) {
|
void setPluginData(const PluginData &pluginData) {
|
||||||
this->pluginData = pluginData;
|
this->pluginData = pluginData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user