mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
Clean up code
* Use compiler generated comparison function * Use designated initializers * Convert to proper type * Use reference * Remove redundant text The `msg` already contain the text `Reason:` so it isn't needed. PR #20312.
This commit is contained in:
@@ -148,7 +148,7 @@ namespace
|
||||
template <typename LTStr>
|
||||
QString fromLTString(const LTStr &str)
|
||||
{
|
||||
return QString::fromUtf8(str.data(), static_cast<int>(str.size()));
|
||||
return QString::fromUtf8(str.data(), static_cast<qsizetype>(str.size()));
|
||||
}
|
||||
|
||||
QString quoted(const QString &name)
|
||||
|
||||
Reference in New Issue
Block a user