Mesh: C++ core guidelines

This commit is contained in:
wmayer
2023-09-25 20:43:31 +02:00
committed by wwmayer
parent dca598f4e5
commit a364141c58
99 changed files with 984 additions and 597 deletions

View File

@@ -30,11 +30,11 @@
#include <Base/Writer.h>
#include "Core/Iterator.h"
#include "Core/MeshIO.h"
#include "Core/MeshKernel.h"
#include "Core/MeshIO.h"
#include "Mesh.h"
#include "MeshProperties.h"
#include "Mesh.h"
#include "MeshPy.h"
@@ -645,7 +645,7 @@ void PropertyMaterial::RestoreDocFile(Base::Reader& reader)
str >> count;
color.resize(count);
for (auto& it : color) {
uint32_t value; // must be 32 bit long
uint32_t value {}; // must be 32 bit long
str >> value;
it.setPackedValue(value);
}
@@ -656,7 +656,7 @@ void PropertyMaterial::RestoreDocFile(Base::Reader& reader)
str >> count;
value.resize(count);
for (auto& it : value) {
float valueF;
float valueF {};
str >> valueF;
it = valueF;
}