From 45ce4740aed0c4e5825c07e51110aef2395f1fed Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 30 Nov 2012 15:09:02 +0100 Subject: Not necessary to assign bool to false for changing just 2 lines after Change-Id: I4ed9a07e3dc2cac9d82b3070a2dd22cca2d80f3d Reviewed-by: David Faure --- src/gui/text/qtextodfwriter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/text/qtextodfwriter.cpp') diff --git a/src/gui/text/qtextodfwriter.cpp b/src/gui/text/qtextodfwriter.cpp index 8f6025fdf0..aefa2356df 100644 --- a/src/gui/text/qtextodfwriter.cpp +++ b/src/gui/text/qtextodfwriter.cpp @@ -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. -> if (!isSpace && escapeNextSpace && precedingSpaces > 1) { -- cgit v1.2.3