summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/find
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-04-08 23:40:00 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-04-09 09:04:00 +0000
commit7d3a79c696a966877b5bde32730b70310d34afdc (patch)
treed0f07bb5acabbafc58ba9bb5890a9802fb0f3769 /src/plugins/coreplugin/find
parent11336fb60458c62f41077318d119910cf1b193a4 (diff)
downloadqt-creator-7d3a79c696a966877b5bde32730b70310d34afdc.tar.gz
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/find')
-rw-r--r--src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp
index d4f553cd31..61007bc907 100644
--- a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp
+++ b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp
@@ -25,8 +25,6 @@
#include "highlightscrollbarcontroller.h"
-#include <utils/asconst.h>
-
#include <QAbstractScrollArea>
#include <QPainter>
#include <QResizeEvent>
@@ -114,7 +112,7 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent)
int previousBottom = -1;
QHash<Utils::Theme::Color, QVector<QRect> > highlights;
- for (const Highlight &currentHighlight : Utils::asConst(m_cache)) {
+ for (const Highlight &currentHighlight : qAsConst(m_cache)) {
// Calculate top and bottom
int top = rect.top() + offset + verticalMargin
+ float(currentHighlight.position) / range * rect.height();