diff options
author | ntfshard <ntfs.hard@gmail.com> | 2015-07-28 02:26:01 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-11-04 22:49:19 +0300 |
commit | eb7464ace6b081cc7f14762de66ee21b7854ff20 (patch) | |
tree | 04f8a141963903b5756b3be887f58c7142584a03 /xs/src/libslic3r/GCodeWriter.cpp | |
parent | f2c4a66e459ce9ec9e9ec0bc06c953f29f80868b (diff) |
Style fix: const for some functions
Diffstat (limited to 'xs/src/libslic3r/GCodeWriter.cpp')
-rw-r--r-- | xs/src/libslic3r/GCodeWriter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xs/src/libslic3r/GCodeWriter.cpp b/xs/src/libslic3r/GCodeWriter.cpp index 10675618d..4055a270a 100644 --- a/xs/src/libslic3r/GCodeWriter.cpp +++ b/xs/src/libslic3r/GCodeWriter.cpp @@ -67,7 +67,7 @@ GCodeWriter::preamble() } std::string -GCodeWriter::postamble() +GCodeWriter::postamble() const { std::ostringstream gcode; if (FLAVOR_IS(gcfMachinekit)) @@ -76,7 +76,7 @@ GCodeWriter::postamble() } std::string -GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool) +GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool) const { if (wait && (FLAVOR_IS(gcfMakerWare) || FLAVOR_IS(gcfSailfish))) return ""; @@ -110,7 +110,7 @@ GCodeWriter::set_temperature(unsigned int temperature, bool wait, int tool) } std::string -GCodeWriter::set_bed_temperature(unsigned int temperature, bool wait) +GCodeWriter::set_bed_temperature(unsigned int temperature, bool wait) const { std::string code, comment; if (wait && FLAVOR_IS_NOT(gcfTeacup)) { @@ -217,7 +217,7 @@ GCodeWriter::reset_e(bool force) } std::string -GCodeWriter::update_progress(unsigned int num, unsigned int tot, bool allow_100) +GCodeWriter::update_progress(unsigned int num, unsigned int tot, bool allow_100) const { if (FLAVOR_IS_NOT(gcfMakerWare) && FLAVOR_IS_NOT(gcfSailfish)) return ""; @@ -273,7 +273,7 @@ GCodeWriter::toolchange(unsigned int extruder_id) } std::string -GCodeWriter::set_speed(double F, const std::string &comment) +GCodeWriter::set_speed(double F, const std::string &comment) const { std::ostringstream gcode; gcode << "G1 F" << F; |