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:
Chocobo1
2024-01-25 02:56:12 +08:00
committed by GitHub
parent bab9c15913
commit 94e80d01a8
7 changed files with 42 additions and 58 deletions

View File

@@ -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;