summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMontel Laurent <kdeqt@yahoo.fr>2012-11-30 15:09:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 23:56:02 +0100
commit45ce4740aed0c4e5825c07e51110aef2395f1fed (patch)
tree53f5ce818ba73ba5ea5c9fa55d2e1b6d208a103c /src/gui
parentc565ef6d72ea4b95cfc72edbb67af27f8ef35fb5 (diff)
Not necessary to assign bool to false for changing just 2 lines after
Change-Id: I4ed9a07e3dc2cac9d82b3070a2dd22cca2d80f3d Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qtextodfwriter.cpp5
1 files changed, 2 insertions, 3 deletions
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. -> <text:s text:c="2" />
if (!isSpace && escapeNextSpace && precedingSpaces > 1) {