mirror of https://github.com/qt/qtbase.git
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:
parent
c565ef6d72
commit
45ce4740ae
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue