Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianluca Recchia <gianluca.recchia97@gmail.com>2018-10-28 14:49:32 +0300
committerGianluca Recchia <gianluca.recchia97@gmail.com>2018-10-31 17:16:04 +0300
commitda9afd3f6fcb7b7c3c5c02112ffe49c1ee34ba43 (patch)
treef25517212eeb197b0d452b0b3ec40bd9279d653d /src/core/PasswordGenerator.cpp
parenta67a574b89ae1e12de158d6fdc5b51fdec6f13f3 (diff)
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.
Diffstat (limited to 'src/core/PasswordGenerator.cpp')
-rw-r--r--src/core/PasswordGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/PasswordGenerator.cpp b/src/core/PasswordGenerator.cpp
index 3dbcdaad8..124b99896 100644
--- a/src/core/PasswordGenerator.cpp
+++ b/src/core/PasswordGenerator.cpp
@@ -31,7 +31,7 @@ PasswordGenerator::PasswordGenerator()
{
}
-double PasswordGenerator::calculateEntropy(QString password)
+double PasswordGenerator::calculateEntropy(const QString& password)
{
return ZxcvbnMatch(password.toLatin1(), 0, 0);
}