From 7d3a79c696a966877b5bde32730b70310d34afdc Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 8 Apr 2018 23:40:00 +0300 Subject: Utils: Purge asConst Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp') 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 - #include #include #include @@ -114,7 +112,7 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent) int previousBottom = -1; QHash > 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(); -- cgit v1.2.1