aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppeditorwidget.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-04-04 18:25:23 +0200
committerhjk <hjk@qt.io>2018-04-06 12:55:23 +0000
commitcf4dbb4bb628c4d51ae866b278a5d0733674c129 (patch)
tree84ecd3c4f841192460142b507bd1e4923b53017c /src/plugins/cppeditor/cppeditorwidget.cpp
parent4a0bbed560a53b644d8d3c9a9db218054582bd89 (diff)
ClangSupport: Use simpler structures in some cases
The patch is mostly mechanical, but contains also a few spurious changes from values references for some local variables, foreach -> ranged for etc that I coulnd't resist. Change-Id: I58f0bd972546895eb318607cbfbd7ac35caf3f23 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorwidget.cpp')
-rw-r--r--src/plugins/cppeditor/cppeditorwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppeditorwidget.cpp b/src/plugins/cppeditor/cppeditorwidget.cpp
index b6032fee4a..d495af6c2a 100644
--- a/src/plugins/cppeditor/cppeditorwidget.cpp
+++ b/src/plugins/cppeditor/cppeditorwidget.cpp
@@ -573,8 +573,8 @@ QList<QTextEdit::ExtraSelection> sourceLocationsToExtraSelections(
QTextEdit::ExtraSelection selection;
selection.cursor = selectAt(cppEditorWidget->textCursor(),
- sourceLocation.line(),
- sourceLocation.column(),
+ sourceLocation.line,
+ sourceLocation.column,
selectionLength);
selection.format = textCharFormat;