Add end-of-line spaces checker

This commit is contained in:
SirLynix
2024-01-26 10:43:00 +01:00
parent 63c61c0827
commit 6757de1be8
90 changed files with 170 additions and 126 deletions

View File

@@ -109,7 +109,7 @@ namespace Nz
NazaraUnused(parameters);
Image tempImage(image); //< We're using COW here to prevent Image copy unless required
int componentCount = ConvertToIntegerFormat(tempImage);
if (componentCount == 0)
{
@@ -229,7 +229,7 @@ namespace Nz
{ ".png", &SavePNG },
{ ".tga", &SaveTGA }
});
bool FormatQuerier(std::string_view extension)
{
return s_formatHandlers.find(extension) != s_formatHandlers.end();

View File

@@ -33,7 +33,7 @@ namespace Nz
entitySkeleton.SetSkeletonParent(&entityNode);
});
m_skeletonConstructObserver.each([&](entt::entity entity)
{
NodeComponent& entityNode = m_registry.get<NodeComponent>(entity);

View File

@@ -129,7 +129,7 @@ namespace Nz
});
NazaraAssert(s_declarations[VertexLayout::XY_Color]->GetStride() == sizeof(VertexStruct_XY_Color), "Invalid stride for declaration VertexLayout::XY_Color");
// VertexLayout::XY_UV : VertexStruct_XY_UV
s_declarations[VertexLayout::XY_UV] = NewDeclaration(VertexInputRate::Vertex, {
{
@@ -292,7 +292,7 @@ namespace Nz
});
NazaraAssert(s_declarations[VertexLayout::XYZ_Normal_UV_Tangent_Skinning]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent_Skinning), "Invalid stride for declaration VertexLayout::XYZ_Normal_UV_Tangent_Skinning");
// VertexLayout::XYZ_SizeRot : VertexStruct_XYZ_SizeRot
s_declarations[VertexLayout::UV_SizeSinCos] = NewDeclaration(VertexInputRate::Vertex, {
{

View File

@@ -47,7 +47,7 @@ namespace Nz
ErrorFlags flags(ErrorMode::ThrowException);
m_mapper.Map(vertexBuffer, 0, vertexBuffer.GetVertexCount());
}
VertexMapper::~VertexMapper() = default;
void VertexMapper::Unmap()