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:
@@ -61,7 +61,7 @@ public:
|
||||
VirtualFunctionDeclarationUse,
|
||||
};
|
||||
|
||||
typedef std::function<QFuture<TextEditor::HighlightingResult> ()> HighlightingRunner;
|
||||
using HighlightingRunner = std::function<QFuture<TextEditor::HighlightingResult> ()>;
|
||||
|
||||
public:
|
||||
explicit SemanticHighlighter(TextEditor::TextDocument *baseTextDocument);
|
||||
@@ -84,7 +84,7 @@ private:
|
||||
private:
|
||||
TextEditor::TextDocument *m_baseTextDocument;
|
||||
|
||||
unsigned m_revision;
|
||||
unsigned m_revision = 0;
|
||||
QScopedPointer<QFutureWatcher<TextEditor::HighlightingResult>> m_watcher;
|
||||
QHash<int, QTextCharFormat> m_formatMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user