fix: function returns by const value

This commit is contained in:
MihailRis
2024-06-07 15:17:32 +03:00
parent d292ef130c
commit a5dc187481
14 changed files with 41 additions and 28 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ namespace cmd {
);
Command* get(const std::string& name);
const std::unordered_map<std::string, Command> getCommands() const {
const std::unordered_map<std::string, Command>& getCommands() const {
return commands;
}
};