diff options
author | Georg Zotti <Georg.Zotti@univie.ac.at> | 2024-03-03 15:17:07 +0100 |
---|---|---|
committer | Georg Zotti <Georg.Zotti@univie.ac.at> | 2024-03-03 15:20:42 +0100 |
commit | 06d9f6f61f0e112d6501afad66e096a721c27fca (patch) | |
tree | e00187da5835cea046fe0cc60084a97bbb5ec967 | |
parent | 5b3c1a33f5a0b3c1279c4b736c737bccb3981583 (diff) |
Use QStringView
-rw-r--r-- | src/core/modules/Landscape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/modules/Landscape.cpp b/src/core/modules/Landscape.cpp index c11fce0ca1..3aedf36173 100644 --- a/src/core/modules/Landscape.cpp +++ b/src/core/modules/Landscape.cpp @@ -583,7 +583,7 @@ void LandscapeOldStyle::load(const QSettings& landscapeIni, const QString& lands //sscanf(s.toLocal8Bit(),"tex%d:%f:%f:%f:%f",&texnum,&a,&b,&c,&d); const QStringList parameters = landscapeIni.value(key).toString().split(':'); // e.g. tex0:0:0:1:1 //TODO: How should be handled an invalid texture description? - QString textureName = parameters.value(0); // tex0 + QStringView textureName = parameters.value(0); // tex0 texnum = textureName.right(textureName.length() - 3).toUInt(); // 0 sides[i].tex = sideTexs[texnum]; sides[i].tex_illum = sideTexs[nbSide+texnum]; |