diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-07-11 07:31:38 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-07-11 16:31:35 +0000 |
commit | 3d3f14e3feff558a764704334f33ef33b4e0ee72 (patch) | |
tree | b72ffe63d0121f1b8588a8a8607a2a7dc1484727 /src/plugins/qmljstools/qmljsrefactoringchanges.cpp | |
parent | 3c8dec2398ff92d8ad7dcb48f7c40925ecd5daba (diff) | |
download | qt-creator-3d3f14e3feff558a764704334f33ef33b4e0ee72.tar.gz |
Prefer using 'override' instead of 'virtual'
warning: prefer using 'override' or (rarely) 'final' instead of
'virtual' [modernize-use-override]
Change-Id: I6dac7a62b627fa1353b4455e1af92f869c2571cc
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'src/plugins/qmljstools/qmljsrefactoringchanges.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljsrefactoringchanges.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp index 12b5c4d7a2..b27631c2d0 100644 --- a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp +++ b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp @@ -46,9 +46,9 @@ public: , m_snapshot(snapshot) {} - virtual void indentSelection(const QTextCursor &selection, - const QString &fileName, - const TextEditor::TextDocument *textDocument) const + void indentSelection(const QTextCursor &selection, + const QString &fileName, + const TextEditor::TextDocument *textDocument) const override { // ### shares code with QmlJSTextEditor::indent QTextDocument *doc = selection.document(); @@ -70,9 +70,9 @@ public: } while (block.isValid() && block != end); } - virtual void reindentSelection(const QTextCursor &selection, - const QString &fileName, - const TextEditor::TextDocument *textDocument) const + void reindentSelection(const QTextCursor &selection, + const QString &fileName, + const TextEditor::TextDocument *textDocument) const override { const TextEditor::TabSettings &tabSettings = ProjectExplorer::actualTabSettings(fileName, textDocument); @@ -81,7 +81,7 @@ public: indenter.reindent(selection.document(), selection, tabSettings); } - virtual void fileChanged(const QString &fileName) + void fileChanged(const QString &fileName) override { m_modelManager->updateSourceFiles(QStringList(fileName), true); } |