Commit 6e93b08a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 1577eaf4
......@@ -289,7 +289,7 @@ void PlainTextMarkupBuilder::endList()
void PlainTextMarkupBuilder::beginListItem()
{
Q_D(PlainTextMarkupBuilder);
for (auto i = 0; i < d->currentListItemNumbers.size(); i++) {
for (int i = 0, total = d->currentListItemNumbers.size(); i < total; ++i) {
d->m_text.append(QStringLiteral(" "));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment