use references when creating styles

This commit is contained in:
Axel Kohlmeyer
2020-07-13 09:40:58 -04:00
parent 3847a3000c
commit da66516dec
8 changed files with 41 additions and 41 deletions

View File

@ -853,7 +853,7 @@ int Input::execute_command()
// invoke commands added via style_command.h
if (command_map->find(command) != command_map->end()) {
CommandCreator command_creator = (*command_map)[command];
CommandCreator &command_creator = (*command_map)[command];
command_creator(lmp,narg,arg);
return 0;
}