From a7e0633d6c93a22d8474bb36a8c320df0fa27957 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 30 Dec 2022 11:09:17 +0000 Subject: [PATCH] Pass Game as const ref to SortPlugins() It doesn't need to be mutable. --- src/api/sorting/plugin_sort.cpp | 2 +- src/api/sorting/plugin_sort.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/sorting/plugin_sort.cpp b/src/api/sorting/plugin_sort.cpp index d4af27e6..60b288be 100644 --- a/src/api/sorting/plugin_sort.cpp +++ b/src/api/sorting/plugin_sort.cpp @@ -29,7 +29,7 @@ namespace loot { std::vector SortPlugins( - Game& game, + const Game& game, const std::vector& loadOrder) { PluginGraph graph; diff --git a/src/api/sorting/plugin_sort.h b/src/api/sorting/plugin_sort.h index 822ae55b..fe88b2a9 100644 --- a/src/api/sorting/plugin_sort.h +++ b/src/api/sorting/plugin_sort.h @@ -31,7 +31,7 @@ #include "api/game/game.h" namespace loot { -std::vector SortPlugins(Game& game, +std::vector SortPlugins(const Game& game, const std::vector& loadOrder); }