mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 00:05:34 -04:00
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:
parent
a67a574b89
commit
da9afd3f6f
40 changed files with 90 additions and 90 deletions
|
@ -71,7 +71,7 @@ void populateCommands()
|
|||
}
|
||||
}
|
||||
|
||||
Command* Command::getCommand(QString commandName)
|
||||
Command* Command::getCommand(const QString& commandName)
|
||||
{
|
||||
populateCommands();
|
||||
if (commands.contains(commandName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue