Commit 7e98a81d authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

prefer range-based for loop

it's more modern
parent 29ed95a5
......@@ -273,9 +273,8 @@ public:
// Keep nodes which contain personal information at the bottom of the list to avoid mid-layout buttons.
static const QStringList fdtSupportedInfo = {QStringLiteral("model"), QStringLiteral("chosen/u-boot,version"), QStringLiteral("serial-number")};
for (auto i = 0; i < fdtSupportedInfo.size(); ++i) {
QString fdtNode =;
QString fdtValue = fdtGetValue(fdtNode);
for (const auto &fdtNode : fdtSupportedInfo) {
const QString fdtValue = fdtGetValue(fdtNode);
if (!fdtValue.isEmpty()) {
if (fdtNode == "serial-number") {
addEntriesToGrid(m_hardwareEntries, {new Entry(fdtNodeName(fdtNode), fdtValue, Entry::Hidden::Yes)});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment