diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2014-08-28 10:08:15 +0200 |
---|---|---|
committer | Andreas Holzammer <andreas.holzammer@kdab.com> | 2014-08-28 11:07:04 +0200 |
commit | 30dde7d6376bca4be6cb0d8de83080cf5f793391 (patch) | |
tree | fae407b87dc5fd3ac66bdd2ab7f97e9d00a551ea /src | |
parent | 3237a5166b242bc14ff9b9b75134b2c72d1e0ce1 (diff) | |
download | qt-creator-30dde7d6376bca4be6cb0d8de83080cf5f793391.tar.gz |
Fix extraSelections call
extraSelections is a local variable as well as a member
function of BaseTextEditorWidget, but if the full
qualified name is used the compiler thinks that this
is a static function call, which happens with the
MSVC 2010. Use the this pointer to use the correct
function.
Change-Id: I44ce96b2c17e7259274f2103ce70ae9b2ae3a56b
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/texteditor/basetexteditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 7e5671bd87..f957b23c4c 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -5206,7 +5206,7 @@ void BaseTextEditorWidget::_q_matchParentheses() if (animatePosition >= 0) { - foreach (const QTextEdit::ExtraSelection &sel, BaseTextEditorWidget::extraSelections(ParenthesesMatchingSelection)) { + foreach (const QTextEdit::ExtraSelection &sel, this->extraSelections(ParenthesesMatchingSelection)) { if (sel.cursor.selectionStart() == animatePosition || sel.cursor.selectionEnd() - 1 == animatePosition) { animatePosition = -1; |