forked from qt-creator/qt-creator
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
11336fb604
commit
7d3a79c696
@@ -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 ¤tHighlight : Utils::asConst(m_cache)) {
|
||||
for (const Highlight ¤tHighlight : qAsConst(m_cache)) {
|
||||
// Calculate top and bottom
|
||||
int top = rect.top() + offset + verticalMargin
|
||||
+ float(currentHighlight.position) / range * rect.height();
|
||||
|
||||
Reference in New Issue
Block a user