mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 06:42:59 -08:00
Reduce function call overhead
The arg() function of the QString class has a variable length argument which allows to reduce the number of chained calls to the same function. With proper formatting, readability is not affected.
This commit is contained in:
8 files changed
+30
-40
No files matched your search
+1
-1
@@ -811,7 +811,7 @@ void Group::removeEntry(Entry* entry)
|
||||
{
|
||||
Q_ASSERT_X(m_entries.contains(entry),
|
||||
Q_FUNC_INFO,
|
||||
QString("Group %1 does not contain %2").arg(this->name()).arg(entry->title()).toLatin1());
|
||||
QString("Group %1 does not contain %2").arg(this->name(), entry->title()).toLatin1());
|
||||
|
||||
emit entryAboutToRemove(entry);
|
||||
|
||||
|
||||
Reference in new issue
Block a user