mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Merge pull request #16483 from Chocobo1/preference1
Convert to QString literals
This commit is contained in:
commit
a21bff1dbd
2 changed files with 295 additions and 307 deletions
|
@ -53,6 +53,6 @@ void asConst(const T &&) = delete;
|
|||
// https://doc.qt.io/qt-6/qstring.html#operator-22-22_qs
|
||||
inline QString operator"" _qs(const char16_t *str, const std::size_t size)
|
||||
{
|
||||
return QString::fromRawData(reinterpret_cast<const QChar *>(str), size);
|
||||
return QString::fromRawData(reinterpret_cast<const QChar *>(str), static_cast<int>(size));
|
||||
}
|
||||
#endif
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue