Apply suggestions from code review

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

View File

@ -233,7 +233,7 @@ 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;
for (auto const & row: rows) {
{
if (rows.size() > 0u) {
auto const values = row.split(" ", QString::SkipEmptyParts);
for (auto const & value: values) {