diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-02-03 10:36:40 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-02-03 14:30:19 +0000 |
commit | 92156cc1d6290e71a7e591552132102457d7c926 (patch) | |
tree | 941b810aedcd534eea975d9eedcd93aa39a0cd01 /src/plugins/texteditor/refactoringchanges.h | |
parent | 9b7f580a1434795a40cccc0f3b9bb13befab7ee5 (diff) |
LanguageClient: Indent code coming from the server
... if the client implementation requests it.
The server is not necessarily aware of our indentation style, so we
might have to apply it to the newly inserted code.
Change-Id: I43518575c7124568da42be3b04a28d7f352f6dc2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.h')
-rw-r--r-- | src/plugins/texteditor/refactoringchanges.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.h b/src/plugins/texteditor/refactoringchanges.h index bce0e5d745..714bdfd683 100644 --- a/src/plugins/texteditor/refactoringchanges.h +++ b/src/plugins/texteditor/refactoringchanges.h @@ -122,7 +122,7 @@ class TEXTEDITOR_EXPORT RefactoringChanges public: using Range = Utils::ChangeSet::Range; - RefactoringChanges(); + explicit RefactoringChanges(RefactoringChangesData *data = nullptr); virtual ~RefactoringChanges(); static RefactoringFilePtr file(TextEditorWidget *editor); @@ -134,8 +134,6 @@ public: bool removeFile(const Utils::FilePath &filePath) const; protected: - explicit RefactoringChanges(RefactoringChangesData *data); - static TextEditorWidget *openEditor(const Utils::FilePath &filePath, bool activate, int line, |