Prevent unnecessary memory allocations

This commit is contained in:
Josef Vitu 2017-09-24 11:45:58 +02:00 committed by Jonathan White
parent 852e89c0df
commit be312bbe4f
5 changed files with 13 additions and 13 deletions

View file

@ -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);