mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix collections being passed by value
This commit is contained in:
@@ -148,7 +148,7 @@ private:
|
||||
return "null";
|
||||
}
|
||||
|
||||
static std::vector<Message> toMessages(std::vector<EditorMessage> messages) {
|
||||
static std::vector<Message> toMessages(const std::vector<EditorMessage>& messages) {
|
||||
std::vector<Message> list;
|
||||
|
||||
for (const auto& message : messages) {
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
static std::vector<EditorMessage> toEditorMessages(std::vector<Message> messages, const LanguageCode language) {
|
||||
static std::vector<EditorMessage> toEditorMessages(const std::vector<Message>& messages, const LanguageCode language) {
|
||||
std::vector<EditorMessage> list;
|
||||
|
||||
for (const auto& message : messages) {
|
||||
@@ -129,7 +129,7 @@ private:
|
||||
return pluginNode;
|
||||
}
|
||||
|
||||
std::string generateJsonResponse(std::vector<std::shared_ptr<const PluginInterface>> plugins) {
|
||||
std::string generateJsonResponse(const std::vector<std::shared_ptr<const PluginInterface>>& plugins) {
|
||||
YAML::Node gameNode;
|
||||
|
||||
// ID the game using its folder value.
|
||||
|
||||
Reference in New Issue
Block a user