diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-07-24 19:07:19 +0300 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-08-03 02:12:21 +0300 |
commit | c168172ea93cbd4fceeac341f286f77b32387619 (patch) | |
tree | 52afd6f5b811b81b868bfa755b7008579e23a8b8 /src/corelib/text/qstringalgorithms_p.h | |
parent | f1411088879b31ec381e2e708625c13c321549d7 (diff) |
qstringalgorithms: make trimmed_helper_positions [[nodiscard]]
Change-Id: Ic3a3ed29b2472487634715ee7b447b36d04b377f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qstringalgorithms_p.h')
-rw-r--r-- | src/corelib/text/qstringalgorithms_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename StringType> 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(); |