forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -48,12 +48,8 @@ using namespace Utils;
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
RefactoringChanges::RefactoringChanges()
|
||||
: m_data(new RefactoringChangesData)
|
||||
{}
|
||||
|
||||
RefactoringChanges::RefactoringChanges(RefactoringChangesData *data)
|
||||
: m_data(data)
|
||||
: m_data(data ? data : new RefactoringChangesData)
|
||||
{}
|
||||
|
||||
RefactoringChanges::~RefactoringChanges() = default;
|
||||
|
||||
Reference in New Issue
Block a user