qstringalgorithms: make trimmed_helper_positions [[nodiscard]]

Change-Id: Ic3a3ed29b2472487634715ee7b447b36d04b377f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2023-07-24 19:07:19 +03:00
parent f141108887
commit c168172ea9

View File

@ -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();