TextEditor: Remove RefactoringChanges::createFile()

Dissolve into only caller.

Change-Id: I2eaac8bf31c0ecd2dfb863b7fae79af557ccad95
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-11-17 12:36:19 +01:00
parent fabef397f9
commit e7073421cc
3 changed files with 1 additions and 14 deletions

View File

@@ -166,7 +166,7 @@ public:
const bool reindent = true;
const bool openEditor = false;
const Utils::FilePath newFilePath = newFileName;
if (!refactoring.createFile(newFileName, newComponentSource, reindent, openEditor))
if (!refactoring.file(newFileName)->create(newComponentSource, reindent, openEditor))
return;
if (path.toString() == currentFileName.toFileInfo().path()) {