From c168172ea93cbd4fceeac341f286f77b32387619 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 24 Jul 2023 19:07:19 +0300 Subject: [PATCH] qstringalgorithms: make trimmed_helper_positions [[nodiscard]] Change-Id: Ic3a3ed29b2472487634715ee7b447b36d04b377f Reviewed-by: Thiago Macieira --- src/corelib/text/qstringalgorithms_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();