diff options
author | David Schulz <david.schulz@qt.io> | 2021-05-18 13:55:23 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2021-05-19 09:45:22 +0000 |
commit | 665c09003967fe04d341c475f4b7086b121d654f (patch) | |
tree | 4752c7d15039f843608cc9584e4c4193231ebf40 /src/plugins/cppeditor/cppeditordocument.cpp | |
parent | 7020d54a0aa660fb3557bc323928f6e7b2daf199 (diff) |
Core: filepathify IDocument
Change-Id: I364a80d070c5f90433309c281c4906ee101a1a1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditordocument.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditordocument.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index 1de9413348..7fef7b5eff 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -447,7 +447,7 @@ TextEditor::TabSettings CppEditorDocument::tabSettings() const return indenter()->tabSettings().value_or(TextEditor::TextDocument::tabSettings()); } -bool CppEditorDocument::save(QString *errorString, const QString &fileName, bool autoSave) +bool CppEditorDocument::save(QString *errorString, const Utils::FilePath &filePath, bool autoSave) { Utils::ExecuteOnDestruction resetSettingsOnScopeExit; @@ -490,7 +490,7 @@ bool CppEditorDocument::save(QString *errorString, const QString &fileName, bool setStorageSettings(settings); } - return TextEditor::TextDocument::save(errorString, fileName, autoSave); + return TextEditor::TextDocument::save(errorString, filePath, autoSave); } } // namespace Internal |