mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Use QString literals
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually. PR #16561.
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
#define QBT_APP_64BIT
|
||||
#endif
|
||||
|
||||
inline const char C_TORRENT_FILE_EXTENSION[] = ".torrent";
|
||||
inline const int MAX_TORRENT_SIZE = 100 * 1024 * 1024; // 100 MiB
|
||||
|
||||
template <typename T>
|
||||
@@ -56,3 +55,5 @@ inline QString operator"" _qs(const char16_t *str, const std::size_t size)
|
||||
return QString::fromRawData(reinterpret_cast<const QChar *>(str), static_cast<int>(size));
|
||||
}
|
||||
#endif
|
||||
|
||||
inline const QString TORRENT_FILE_EXTENSION = u".torrent"_qs;
|
||||
|
||||
Reference in New Issue
Block a user