mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-12 21:40:54 -04:00
Prevent unnecessary memory allocations
This commit is contained in:
parent
852e89c0df
commit
be312bbe4f
5 changed files with 13 additions and 13 deletions
|
@ -521,9 +521,9 @@ void KeePass2XmlWriter::writeColor(const QString& qualifiedName, const QColor& c
|
|||
QString colorStr;
|
||||
|
||||
if (color.isValid()) {
|
||||
colorStr = QString("#%1%2%3").arg(colorPartToString(color.red()))
|
||||
.arg(colorPartToString(color.green()))
|
||||
.arg(colorPartToString(color.blue()));
|
||||
colorStr = QString("#%1%2%3").arg(colorPartToString(color.red()),
|
||||
colorPartToString(color.green()),
|
||||
colorPartToString(color.blue()));
|
||||
}
|
||||
|
||||
writeString(qualifiedName, colorStr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue