18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 06:35:21 +01:00

chore(editor): the rest of the Sonar notes of the PRs (bytes as numbers, std::format, no copy of the old track name, no shadowed names, try_emplace, deduced template arguments)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1Q7wdYkbxDUWscNHZ
This commit is contained in:
Claude
2026-11-14 23:45:23 +01:00
parent 644689ca28
commit 1f6a500685
+1 -1
View File
@@ -61,7 +61,7 @@ std::vector<glm::dvec2> dab(glm::dvec2 const &Centre, dab_settings const &Settin
// it's given up for the spacing
int constexpr most{2000};
auto const wanted{std::min(most, static_cast<int>(std::lround(std::max(0.0, Settings.density) * std::numbers::pi * radius * radius / 100.0)))};
std::uniform_real_distribution<double> unit{0.0, 1.0};
std::uniform_real_distribution unit{0.0, 1.0};
std::vector<glm::dvec2> made;
int constexpr tries_each{30};
auto attempts{wanted * tries_each};