modernize: Use 'while(true)' instead of 'while(1)'
[quassel.git] / src / qtui / chatviewsearchcontroller.cpp
index 2360913..e5026cd 100644 (file)
@@ -145,7 +145,7 @@ void ChatViewSearchController::updateHighlights(bool reuse)
                 int start = 0; int end = _highlightItems.count() - 1;
                 QPointF startPos;
                 QPointF endPos;
-                while (1) {
+                while (true) {
                     startPos = _highlightItems[start]->scenePos();
                     endPos = _highlightItems[end]->scenePos();
                     if (startPos == oldHighlightPos) {