summaryrefslogtreecommitdiff
path: root/src/assistant/help/qhelpprojectdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/qhelpprojectdata.cpp')
-rw-r--r--src/assistant/help/qhelpprojectdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assistant/help/qhelpprojectdata.cpp b/src/assistant/help/qhelpprojectdata.cpp
index f48fdea9b..fa084ff3c 100644
--- a/src/assistant/help/qhelpprojectdata.cpp
+++ b/src/assistant/help/qhelpprojectdata.cpp
@@ -275,13 +275,13 @@ void QHelpProjectDataPrivate::addMatchingFiles(const QString &pattern)
{
// The pattern matching is expensive, so we skip it if no
// wildcard symbols occur in the string.
- if (!pattern.contains('?') && !pattern.contains('*')
- && !pattern.contains('[') && !pattern.contains(']')) {
+ if (!pattern.contains(QLatin1Char('?')) && !pattern.contains(QLatin1Char('*'))
+ && !pattern.contains(QLatin1Char('[')) && !pattern.contains(QLatin1Char(']'))) {
filterSectionList.last().addFile(pattern);
return;
}
- QFileInfo fileInfo(rootPath + '/' + pattern);
+ QFileInfo fileInfo(rootPath + QLatin1Char('/') + pattern);
const QDir &dir = fileInfo.dir();
const QString &path = dir.canonicalPath();
@@ -303,7 +303,7 @@ void QHelpProjectDataPrivate::addMatchingFiles(const QString &pattern)
if (regExp.exactMatch(file)) {
matchFound = true;
filterSectionList.last().
- addFile(QFileInfo(pattern).dir().path() + '/' + file);
+ addFile(QFileInfo(pattern).dir().path() + QLatin1Char('/') + file);
}
}
if (!matchFound)