diff options
author | FormerLurker <hochgebe@gmail.com> | 2021-01-18 20:14:41 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2021-01-18 20:14:41 +0300 |
commit | b35d6aa16d9dae8350a36ac0256bf68a1ac51cef (patch) | |
tree | f46bdf33c00d59c8c1de76f76a6ccab005fdba9b /ArcWelder/arc_welder.cpp | |
parent | 4d7375393fa603d3a2b14425a9c269ca521823ee (diff) |
Minor performance enhancements
Diffstat (limited to 'ArcWelder/arc_welder.cpp')
-rw-r--r-- | ArcWelder/arc_welder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ArcWelder/arc_welder.cpp b/ArcWelder/arc_welder.cpp index 74f98ce..733c49e 100644 --- a/ArcWelder/arc_welder.cpp +++ b/ArcWelder/arc_welder.cpp @@ -716,7 +716,7 @@ std::string arc_welder::get_comment_for_arc() std::string comment; for (; comment_index < unwritten_commands_.count(); comment_index++) { - std::string old_comment = unwritten_commands_[comment_index].command.comment; + std::string old_comment = unwritten_commands_[comment_index].comment; if (old_comment != comment && old_comment.length() > 0) { if (comment.length() > 0) @@ -756,7 +756,7 @@ int arc_welder::write_unwritten_gcodes_to_file() { segment_statistics_.update(p.extrusion_length, false); } - lines_to_write.append(p.command.to_string()).append("\n"); + lines_to_write.append(p.to_string()).append("\n"); } output_file_ << lines_to_write; |