forked from qt-creator/qt-creator
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 <hjk121@nokiamail.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user