corelib: silence -Wcomma
with clang-12
clang-12 warns with -Wcomma warning: possible misuse of comma operator here [-Wcomma] { return Q_ASSERT(i >= 0), Q_ASSERT(i < size()), QLatin1Char(m_data[i]); } Pick-to: 6.4 6.5 Change-Id: Ice8a809c8ac9069e55aedefa71faf06385e97789 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3e1100f908
commit
c24f4d2c32
@ -78,7 +78,11 @@ public:
|
||||
[[nodiscard]] inline QString arg(Args &&...args) const;
|
||||
|
||||
[[nodiscard]] constexpr QLatin1Char at(qsizetype i) const
|
||||
{ return Q_ASSERT(i >= 0), Q_ASSERT(i < size()), QLatin1Char(m_data[i]); }
|
||||
{
|
||||
Q_ASSERT(i >= 0);
|
||||
Q_ASSERT(i < size());
|
||||
return QLatin1Char(m_data[i]);
|
||||
}
|
||||
[[nodiscard]] constexpr QLatin1Char operator[](qsizetype i) const { return at(i); }
|
||||
|
||||
[[nodiscard]] constexpr QLatin1Char front() const { return at(0); }
|
||||
|
Loading…
Reference in New Issue
Block a user