Use QString literals

The plan is to define `QT_NO_CAST_FROM_ASCII` eventually.
PR #16561.
This commit is contained in:
Chocobo1
2022-03-04 13:25:22 +08:00
committed by GitHub
parent 2c8447853b
commit ab64ee872b
23 changed files with 104 additions and 108 deletions

View File

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