From da9afd3f6fcb7b7c3c5c02112ffe49c1ee34ba43 Mon Sep 17 00:00:00 2001 From: Gianluca Recchia Date: Sun, 28 Oct 2018 12:49:32 +0100 Subject: 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. --- src/core/PasswordGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/PasswordGenerator.cpp') 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); } -- cgit v1.2.3