Fix backwards-compatible Qt6 warnings

This commit is contained in:
Johannes Wüller
2024-05-06 15:27:06 +02:00
committed by Chris Hennes
parent 5b4eeb29a9
commit 33e91421b5
22 changed files with 44 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ bool MacroFile::commit()
import << QString::fromLatin1("import FreeCAD");
QStringList body;
for (const auto& it : qAsConst(this->macroInProgress)) {
for (const auto& it : std::as_const(this->macroInProgress)) {
if (it.startsWith(QLatin1String("import ")) ||
it.startsWith(QLatin1String("#import "))) {
if (import.indexOf(it) == -1)
@@ -107,7 +107,7 @@ bool MacroFile::commit()
// write the data to the text file
str << header;
for (const auto& it : qAsConst(import)) {
for (const auto& it : std::as_const(import)) {
str << it << QLatin1Char('\n');
}
str << QLatin1Char('\n');