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:
Alessandro Portale
2019-01-14 01:40:53 +01:00
parent 845af92889
commit 1d3d18a969
116 changed files with 461 additions and 555 deletions

View File

@@ -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,