aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangformat
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-04-26 15:46:09 +0200
committerhjk <hjk@qt.io>2021-04-27 06:52:05 +0000
commit8e352af0ecd3c330a96f7ca67067f0dfe200a0e4 (patch)
tree9a48ba6aaae7f301835a5874dbea7b5cc6983828 /src/plugins/clangformat
parentc236a25339bca51d393c77f7a6945d36c6234943 (diff)
Core: Add a default parameter to various ICore::*path functions
Saves some code on the user side. Change-Id: I32cd220b6e533f5497a1865f9c34ab9db4cfda79 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/clangformat')
-rw-r--r--src/plugins/clangformat/clangformatconfigwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangformat/clangformatconfigwidget.cpp b/src/plugins/clangformat/clangformatconfigwidget.cpp
index 956dac10e4d..d50e9b6e325 100644
--- a/src/plugins/clangformat/clangformatconfigwidget.cpp
+++ b/src/plugins/clangformat/clangformatconfigwidget.cpp
@@ -173,7 +173,7 @@ void ClangFormatConfigWidget::initChecksAndPreview()
connect(m_ui->applyButton, &QPushButton::clicked, this, &ClangFormatConfigWidget::apply);
fileName = m_project->projectFilePath().pathAppended("snippet.cpp");
} else {
- fileName = Core::ICore::userResourcePath() / "snippet.cpp";
+ fileName = Core::ICore::userResourcePath("snippet.cpp");
}
m_preview->textDocument()->indenter()->setFileName(fileName);
}