1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Simplify code

Don't use replacement placeholder and use string append which is faster.
This commit is contained in:
Chocobo1 2022-09-17 01:38:56 +08:00
parent 0e0b8d1027
commit 3aadb63d80
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -52,8 +52,9 @@ namespace
QString logText(const QModelIndex &index)
{
return u"%1%2%3"_qs.arg(index.data(BaseLogModel::TimeRole).toString(), SEPARATOR
, index.data(BaseLogModel::MessageRole).toString());
return index.data(BaseLogModel::TimeRole).toString()
+ SEPARATOR
+ index.data(BaseLogModel::MessageRole).toString();
}
class LogItemDelegate final : public QStyledItemDelegate