From 14276f72ff3472f04037adeafdb94d6de37b292a Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <daniel.molkentin@nokia.com>
Date: Thu, 15 Jan 2009 16:52:12 +0100
Subject: [PATCH] Fixes: Warning on MSVC, no not temporary convert to int.
 RevBy: Matthias

---
 src/plugins/texteditor/basetexteditor.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 9f145bc0801..f3d1ab07566 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -3370,9 +3370,9 @@ void BaseTextEditor::setIfdefedOutBlocks(const QList<BaseTextEditor::BlockRange>
             const BlockRange &range = blocks.at(rangeNumber);
 
             if (block.position() >= range.first && (block.position() <= range.last || !range.last)) {
-                needUpdate += TextEditDocumentLayout::setIfdefedOut(block);
+                needUpdate |= TextEditDocumentLayout::setIfdefedOut(block);
             } else {
-                needUpdate += TextEditDocumentLayout::clearIfdefedOut(block);
+                needUpdate |= TextEditDocumentLayout::clearIfdefedOut(block);
             }
             if (block.contains(range.last))
                 ++rangeNumber;
-- 
GitLab