summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/assistant/simpletextviewer/assistant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/assistant/simpletextviewer/assistant.cpp b/examples/assistant/simpletextviewer/assistant.cpp
index 567f81f51..69e9b2d06 100644
--- a/examples/assistant/simpletextviewer/assistant.cpp
+++ b/examples/assistant/simpletextviewer/assistant.cpp
@@ -45,7 +45,7 @@ QString documentationDirectory()
paths.append(QLibraryInfo::path(QLibraryInfo::ExamplesPath));
paths.append(QCoreApplication::applicationDirPath());
paths.append(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation));
- for (const auto &dir : qAsConst(paths)) {
+ for (const auto &dir : std::as_const(paths)) {
const QString path = dir + QLatin1String("/documentation");
if (QFileInfo::exists(path))
return path;