fix: function returns by const value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user