Browse Source

Merge pull request #16483 from Chocobo1/preference1

Convert to QString literals
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
a21bff1dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/global.h
  2. 602
      src/base/preferences.cpp

2
src/base/global.h

@ -53,6 +53,6 @@ void asConst(const T &&) = delete;
// https://doc.qt.io/qt-6/qstring.html#operator-22-22_qs // 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) 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 #endif

602
src/base/preferences.cpp

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save