summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringalgorithms_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-07-24 19:07:19 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-08-03 02:12:21 +0300
commitc168172ea93cbd4fceeac341f286f77b32387619 (patch)
tree52afd6f5b811b81b868bfa755b7008579e23a8b8 /src/corelib/text/qstringalgorithms_p.h
parentf1411088879b31ec381e2e708625c13c321549d7 (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.h2
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();