aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/highlightersettings.cpp
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/texteditor/highlightersettings.cpp
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/texteditor/highlightersettings.cpp')
-rw-r--r--src/plugins/texteditor/highlightersettings.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/texteditor/highlightersettings.cpp b/src/plugins/texteditor/highlightersettings.cpp
index 9edb522a57..97d31ba999 100644
--- a/src/plugins/texteditor/highlightersettings.cpp
+++ b/src/plugins/texteditor/highlightersettings.cpp
@@ -88,7 +88,7 @@ QString findFallbackDefinitionsLocation()
}
}
- dir.setPath(Core::ICore::resourcePath().pathAppended("generic-highlighter").toString());
+ dir.setPath(Core::ICore::resourcePath("generic-highlighter").toString());
if (dir.exists() && !dir.entryInfoList().isEmpty())
return dir.path();
@@ -165,8 +165,7 @@ void HighlighterSettings::assignDefaultIgnoredPatterns()
void HighlighterSettings::assignDefaultDefinitionsPath()
{
- const QString path
- = Core::ICore::userResourcePath().pathAppended("generic-highlighter").toString();
+ const QString path = Core::ICore::userResourcePath("generic-highlighter").toString();
if (QFile::exists(path) || QDir().mkpath(path))
m_definitionFilesPath = path;
}