forked from qt-creator/qt-creator
Fix link error with MSVC
CppTools.lib(CppTools.dll) : error LNK2005: "public: virtual __thiscall QFutureInterface<class TextEditor::HighlightingResult>::~QFutureInterface<class TextEditor::HighlightingResult>(void)" (??1?$QFutureInterface@VHighlightingResult@TextEditor@@@@UAE@XZ) already defined in moc_cppeditor.obj Creating library ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.lib and object ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.exp..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll : fatal error LNK1169: one or more multiply defined symbols found Change-Id: Id53a0f8a99dbd18a9cbdf2af57b4f3970f5c41a3 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
81f62d3673
commit
a8ff5e8343
@@ -534,8 +534,8 @@ CPPEditorWidget::CPPEditorWidget(QWidget *parent)
|
||||
this, SLOT(onDocumentUpdated()));
|
||||
connect(editorSupport, SIGNAL(semanticInfoUpdated(CppTools::SemanticInfo)),
|
||||
this, SLOT(updateSemanticInfo(CppTools::SemanticInfo)));
|
||||
connect(editorSupport, SIGNAL(highlighterStarted(QFuture<TextEditor::HighlightingResult>, unsigned)),
|
||||
this, SLOT(highlighterStarted(QFuture<TextEditor::HighlightingResult>, unsigned)));
|
||||
connect(editorSupport, SIGNAL(highlighterStarted(QFuture<TextEditor::HighlightingResult> *, unsigned)),
|
||||
this, SLOT(highlighterStarted(QFuture<TextEditor::HighlightingResult> *, unsigned)));
|
||||
|
||||
m_completionSupport = m_modelManager->completionSupport(editor());
|
||||
}
|
||||
@@ -1978,10 +1978,10 @@ void CPPEditorWidget::semanticRehighlight(bool force)
|
||||
m_modelManager->cppEditorSupport(editor())->recalculateSemanticInfoDetached(force);
|
||||
}
|
||||
|
||||
void CPPEditorWidget::highlighterStarted(QFuture<TextEditor::HighlightingResult> highlighter,
|
||||
void CPPEditorWidget::highlighterStarted(QFuture<TextEditor::HighlightingResult> *highlighter,
|
||||
unsigned revision)
|
||||
{
|
||||
m_highlighter = highlighter;
|
||||
m_highlighter = *highlighter;
|
||||
m_highlightRevision = revision;
|
||||
m_highlightWatcher.setFuture(m_highlighter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user