Not necessary to assign bool to false for changing just 2 lines after

Change-Id: I4ed9a07e3dc2cac9d82b3070a2dd22cca2d80f3d
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Montel Laurent 2012-11-30 15:09:02 +01:00 committed by The Qt Project
parent c565ef6d72
commit 45ce4740ae
1 changed files with 2 additions and 3 deletions

View File

@ -303,9 +303,8 @@ void QTextOdfWriter::writeBlock(QXmlStreamWriter &writer, const QTextBlock &bloc
int precedingSpaces = 0;
int exportedIndex = 0;
for (int i=0; i <= fragmentText.count(); ++i) {
bool isSpace = false;
QChar character = fragmentText[i];
isSpace = character.unicode() == ' ';
QChar character = fragmentText[i];
bool isSpace = character.unicode() == ' ';
// find more than one space. -> <text:s text:c="2" />
if (!isSpace && escapeNextSpace && precedingSpaces > 1) {