mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 00:02:33 -08: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:
40 files changed
+90
-90
No files matched your search
@@ -178,7 +178,7 @@ FileDialog::FileDialog()
|
||||
{
|
||||
}
|
||||
|
||||
void FileDialog::saveLastDir(QString dir)
|
||||
void FileDialog::saveLastDir(const QString& dir)
|
||||
{
|
||||
if (!dir.isEmpty() && !m_forgetLastDir) {
|
||||
config()->set("LastDir", QFileInfo(dir).absolutePath());
|
||||
|
||||
Reference in new issue
Block a user