File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ namespace StringExt
3939 std::same_as<T, std::string> || std::same_as<T, std::wstring> ||
4040 std::same_as<T, QString>;
4141
42- // Ingores ""q instead of ""_q. Thank you C++ committie for another useless warning.
42+ // Ingores ""q instead of ""_q. Thank you C++ committee for another useless warning.
4343 #pragma GCC diagnostic push
4444 #pragma GCC diagnostic ignored "-Wliteral-suffix"
4545 // / @brief Works fine, but not a compile-time optimized.
4646 // / @brief To be able optimize it in compile-time update to Qt 6.4 >= due to constexpr ctor in QString.
4747 // / @brief Reference: https://doc.qt.io/qt-6/qstring.html#operator-22-22_s
48+ // / @example QString qstr = "text"q + "sample";
4849 inline QString operator " " q (const char * str, size_t len) noexcept { return QString::fromUtf8 (str, len); }
4950 inline QString operator " " q (const wchar_t * str, size_t len) noexcept { return QString::fromWCharArray (str, len); }
5051 #pragma GCC diagnostic pop
You can’t perform that action at this time.
0 commit comments