forked from qt-creator/qt-creator
CppTools: modernize
Change-Id: Iaf02e4d026f1ac8b216833d83cd7a735e21ff60a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -47,7 +47,6 @@ namespace CppTools {
|
||||
SemanticHighlighter::SemanticHighlighter(TextDocument *baseTextDocument)
|
||||
: QObject(baseTextDocument)
|
||||
, m_baseTextDocument(baseTextDocument)
|
||||
, m_revision(0)
|
||||
{
|
||||
QTC_CHECK(m_baseTextDocument);
|
||||
updateFormatMapFromFontSettings();
|
||||
@@ -113,7 +112,7 @@ void SemanticHighlighter::onHighlighterFinished()
|
||||
|
||||
void SemanticHighlighter::connectWatcher()
|
||||
{
|
||||
typedef QFutureWatcher<HighlightingResult> Watcher;
|
||||
using Watcher = QFutureWatcher<HighlightingResult>;
|
||||
connect(m_watcher.data(), &Watcher::resultsReadyAt,
|
||||
this, &SemanticHighlighter::onHighlighterResultAvailable);
|
||||
connect(m_watcher.data(), &Watcher::finished,
|
||||
@@ -122,7 +121,7 @@ void SemanticHighlighter::connectWatcher()
|
||||
|
||||
void SemanticHighlighter::disconnectWatcher()
|
||||
{
|
||||
typedef QFutureWatcher<HighlightingResult> Watcher;
|
||||
using Watcher = QFutureWatcher<HighlightingResult>;
|
||||
disconnect(m_watcher.data(), &Watcher::resultsReadyAt,
|
||||
this, &SemanticHighlighter::onHighlighterResultAvailable);
|
||||
disconnect(m_watcher.data(), &Watcher::finished,
|
||||
|
||||
Reference in New Issue
Block a user