All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user