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:
parent
0e0b8d1027
commit
3aadb63d80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user