qstringalgorithms: make trimmed_helper_positions [[nodiscard]]
Change-Id: Ic3a3ed29b2472487634715ee7b447b36d04b377f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f141108887
commit
c168172ea9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user