From dff9a5f4b0bad7ef84fd7052245cef800b0c18ed Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 22 Jul 2014 21:37:50 +0200 Subject: [PATCH] TextEditor: Compile fix for MSVC 2010 MSVC suddenly has this problem when bulding Qt Creator master Qt5 dev. error C2352: 'TextEditor::BaseTextEditorWidget::extraSelections' : illegal call of non-static member function error C2825: 'T': must be a class or namespace when followed by '::' ... This patch works it around by simply using this-> Change-Id: I8aae3e76f80248e1dd27d87552d14a81eda0d25f Reviewed-by: hjk --- src/plugins/texteditor/basetexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index e316a4584be..7238d2e795f 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;