Fix clazy-strict-iterators
Change-Id: I9276a85f0a8061b2636687cf694b8ed1abaa18b8 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>bb10
parent
ecd183455b
commit
5eb508a317
|
|
@ -411,7 +411,7 @@ QStateMachinePrivate::~QStateMachinePrivate()
|
|||
qDeleteAll(internalEventQueue);
|
||||
qDeleteAll(externalEventQueue);
|
||||
|
||||
for (QHash<int, DelayedEvent>::const_iterator it = delayedEvents.begin(), eit = delayedEvents.end(); it != eit; ++it) {
|
||||
for (QHash<int, DelayedEvent>::const_iterator it = delayedEvents.cbegin(), eit = delayedEvents.cend(); it != eit; ++it) {
|
||||
delete it.value().event;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@ QDBusMessage qDBusPropertySet(const QDBusConnectionPrivate::ObjectTreeNode &node
|
|||
QDBusAdaptorConnector::AdaptorMap::ConstIterator it;
|
||||
it = std::lower_bound(connector->adaptors.constBegin(), connector->adaptors.constEnd(),
|
||||
interface_name);
|
||||
if (it != connector->adaptors.end() && interface_name == QLatin1String(it->interface)) {
|
||||
if (it != connector->adaptors.cend() && interface_name == QLatin1String(it->interface)) {
|
||||
return propertyWriteReply(msg, interface_name, property_name,
|
||||
writeProperty(it->adaptor, property_name, value));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1048,7 +1048,7 @@ void QTextTable::mergeCells(int row, int column, int numRows, int numCols)
|
|||
QFragmentFindHelper helper(origCellPosition, p->fragmentMap());
|
||||
const auto begin = d->cells.cbegin();
|
||||
const auto it = std::lower_bound(begin, d->cells.cend(), helper);
|
||||
Q_ASSERT(it != d->cells.end());
|
||||
Q_ASSERT(it != d->cells.cend());
|
||||
Q_ASSERT(!(helper < *it));
|
||||
Q_ASSERT(*it == cellFragment);
|
||||
const int insertCellIndex = it - begin;
|
||||
|
|
@ -1082,7 +1082,7 @@ void QTextTable::mergeCells(int row, int column, int numRows, int numCols)
|
|||
QFragmentFindHelper helper(pos, p->fragmentMap());
|
||||
const auto begin = d->cells.cbegin();
|
||||
const auto it = std::lower_bound(begin, d->cells.cend(), helper);
|
||||
Q_ASSERT(it != d->cells.end());
|
||||
Q_ASSERT(it != d->cells.cend());
|
||||
Q_ASSERT(!(helper < *it));
|
||||
Q_ASSERT(*it == fragment);
|
||||
firstCellIndex = cellIndex = it - begin;
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ bool QComposeInputContext::checkComposeTable()
|
|||
int next = 1;
|
||||
do {
|
||||
// if we are at the end of the table, then we have nothing to do here
|
||||
if (it + next != m_composeTable.end()) {
|
||||
if (it + next != m_composeTable.constEnd()) {
|
||||
QComposeTableElement nextElem = *(it + next);
|
||||
if (isDuplicate(elem, nextElem)) {
|
||||
elem = nextElem;
|
||||
|
|
|
|||
|
|
@ -992,7 +992,7 @@ static void mergeStringLiterals(Symbols *_symbols)
|
|||
mergeSymbolLexem.reserve(literalsLength);
|
||||
mergeSymbolLexem.append('"');
|
||||
mergeSymbolLexem.append(mergeSymbolOriginalLexem);
|
||||
for (Symbols::const_iterator j = mergeSymbol + 1; j != i; ++j)
|
||||
for (Symbols::iterator j = mergeSymbol + 1; j != i; ++j)
|
||||
mergeSymbolLexem.append(j->lex.constData() + j->from + 1, j->len - 2); // append j->unquotedLexem()
|
||||
mergeSymbolLexem.append('"');
|
||||
mergeSymbol->len = mergeSymbol->lex.length();
|
||||
|
|
|
|||
Loading…
Reference in New Issue