Apply suggestions from code review

This commit is contained in:
PeC-KAYO 2022-01-25 20:10:18 +01:00 committed by GitHub
parent 10aa65b727
commit 5951ae03f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,8 +233,8 @@ std::vector<MeshModel*> loadMLP(
auto * const v = md.mm()->cm.Tr.V();
auto const rows = tr.firstChild().nodeValue().split("\n", QString::SkipEmptyParts);
auto i = 0u;
{
if (rows.size() > 0u) {
for (auto const & row: rows) {
{
auto const values = row.split(" ", QString::SkipEmptyParts);
for (auto const & value: values) {
if (i >= 16u) break;