diff --git a/src/corelib/text/qstringalgorithms_p.h b/src/corelib/text/qstringalgorithms_p.h index 4a3bebaa28..f34acb01e8 100644 --- a/src/corelib/text/qstringalgorithms_p.h +++ b/src/corelib/text/qstringalgorithms_p.h @@ -59,7 +59,7 @@ template struct QStringAlgorithms // - if there is a sequence of one or more space chacaters at the end, // "end" refers to the first character in that sequence, otherwise // "end" is str.cend() - static TrimPositions trimmed_helper_positions(const StringType &str) + [[nodiscard]] static TrimPositions trimmed_helper_positions(const StringType &str) { const Char *begin = str.cbegin(); const Char *end = str.cend();