mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -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:
@@ -76,7 +76,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()));
|
||||
}
|
||||
|
||||
using ListType = lt::entry::list_type;
|
||||
|
||||
Reference in New Issue
Block a user