Reduce number of unneeded copies
This patch aims at reducing the number of copies for obejcts that could be referenced rather than copied, because they're not modified during the computation.
This commit is contained in:
@@ -71,7 +71,7 @@ void populateCommands()
|
||||
}
|
||||
}
|
||||
|
||||
Command* Command::getCommand(QString commandName)
|
||||
Command* Command::getCommand(const QString& commandName)
|
||||
{
|
||||
populateCommands();
|
||||
if (commands.contains(commandName)) {
|
||||
|
||||
Reference in New Issue
Block a user