17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 22:47:28 +01:00

refactor(sonar): use range-based loops and ranges algorithms (cpp:S5566)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 16:13:12 +02:00
parent b6349b76e3
commit 03652a5934
8 changed files with 132 additions and 143 deletions

View File

@@ -15,20 +15,20 @@ http://mozilla.org/MPL/2.0/.
void float4x4::deserialize_float32(std::istream &s)
{
for (size_t i = 0; i < 16; i++)
e[i] = sn_utils::ld_float32(s);
for (auto &elemententry : e)
elemententry = sn_utils::ld_float32(s);
}
void float4x4::deserialize_float64(std::istream &s)
{
for (size_t i = 0; i < 16; i++)
e[i] = (float)sn_utils::ld_float64(s);
for (auto &elemententry : e)
elemententry = (float)sn_utils::ld_float64(s);
}
void float4x4::serialize_float32(std::ostream &s) const
{
for (size_t i = 0; i < 16; i++)
sn_utils::ls_float32(s, e[i]);
for (auto &element : e)
sn_utils::ls_float32(s, element);
}
void float4x4::Quaternion(float4 *q)