All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -103,8 +103,7 @@ std::string Command::toGCode(int precision, bool padzero) const
}
double scale = std::pow(10.0, precision + 1);
std::int64_t iscale = static_cast<std::int64_t>(scale) / 10;
for (std::map<std::string, double>::const_iterator i = Parameters.begin();
i != Parameters.end();
for (std::map<std::string, double>::const_iterator i = Parameters.begin(); i != Parameters.end();
++i) {
if (i->first == "N") {
continue;
@@ -284,8 +283,7 @@ Command Command::transform(const Base::Placement& other)
plac.getRotation().getYawPitchRoll(aval, bval, cval);
Command c = Command();
c.Name = Name;
for (std::map<std::string, double>::const_iterator i = Parameters.begin();
i != Parameters.end();
for (std::map<std::string, double>::const_iterator i = Parameters.begin(); i != Parameters.end();
++i) {
std::string k = i->first;
double v = i->second;
@@ -314,8 +312,7 @@ Command Command::transform(const Base::Placement& other)
void Command::scaleBy(double factor)
{
for (std::map<std::string, double>::const_iterator i = Parameters.begin();
i != Parameters.end();
for (std::map<std::string, double>::const_iterator i = Parameters.begin(); i != Parameters.end();
++i) {
switch (i->first[0]) {
case 'X':