Migrates ./Lts/Viewer successfully to Qt6
This commit is contained in:
28 files changed
+250
-129
No files matched your search
@@ -16,6 +16,7 @@
|
||||
// Qt
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QVector>
|
||||
#include <utility>
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -38,7 +39,7 @@ QString getResourcePath()
|
||||
pathsToSearch += QLatin1String("/usr/share/arcgis/resources");
|
||||
#endif
|
||||
|
||||
for (const QString &path : qAsConst(pathsToSearch))
|
||||
for (const QString &path : std::as_const(pathsToSearch))
|
||||
{
|
||||
if (QDir(path).exists())
|
||||
return path + QLatin1Char('/');
|
||||
|
||||
Reference in new issue
Block a user