forked from qt-creator/qt-creator
Fix build on Windows
For some reason it doesn't like signals with QFutures. Going back to pointers, but copying the future from there when it's used. Change-Id: I8dea0817b4e59ede6874ab8be01f22a92e7402a0 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -390,7 +390,7 @@ void CppEditorSupport::startHighlighting()
|
||||
|
||||
m_highlighter = m_highlightingSupport->highlightingFuture(doc, snapshot);
|
||||
m_lastHighlightRevision = revision;
|
||||
emit highlighterStarted(m_highlighter, m_lastHighlightRevision);
|
||||
emit highlighterStarted(&m_highlighter, m_lastHighlightRevision);
|
||||
} else {
|
||||
const unsigned revision = currentSource(false).revision;
|
||||
if (m_lastHighlightRevision == revision)
|
||||
@@ -400,7 +400,7 @@ void CppEditorSupport::startHighlighting()
|
||||
static const Document::Ptr dummyDoc;
|
||||
static const Snapshot dummySnapshot;
|
||||
m_highlighter = m_highlightingSupport->highlightingFuture(dummyDoc, dummySnapshot);
|
||||
emit highlighterStarted(m_highlighter, m_lastHighlightRevision);
|
||||
emit highlighterStarted(&m_highlighter, m_lastHighlightRevision);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user