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.hpp | |
parent | f2c4a66e459ce9ec9e9ec0bc06c953f29f80868b (diff) |
Style fix: const for some functions
Diffstat (limited to 'xs/src/libslic3r/GCodeWriter.hpp')
-rw-r--r-- | xs/src/libslic3r/GCodeWriter.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xs/src/libslic3r/GCodeWriter.hpp b/xs/src/libslic3r/GCodeWriter.hpp index dbedc1766..e7b93ac42 100644 --- a/xs/src/libslic3r/GCodeWriter.hpp +++ b/xs/src/libslic3r/GCodeWriter.hpp @@ -24,17 +24,17 @@ class GCodeWriter { void apply_print_config(const PrintConfig &print_config); void set_extruders(const std::vector<unsigned int> &extruder_ids); std::string preamble(); - std::string postamble(); - std::string set_temperature(unsigned int temperature, bool wait = false, int tool = -1); - std::string set_bed_temperature(unsigned int temperature, bool wait = false); + std::string postamble() const; + std::string set_temperature(unsigned int temperature, bool wait = false, int tool = -1) const; + std::string set_bed_temperature(unsigned int temperature, bool wait = false) const; std::string set_fan(unsigned int speed, bool dont_save = false); std::string set_acceleration(unsigned int acceleration); std::string reset_e(bool force = false); - std::string update_progress(unsigned int num, unsigned int tot, bool allow_100 = false); + std::string update_progress(unsigned int num, unsigned int tot, bool allow_100 = false) const; bool need_toolchange(unsigned int extruder_id) const; std::string set_extruder(unsigned int extruder_id); std::string toolchange(unsigned int extruder_id); - std::string set_speed(double F, const std::string &comment = std::string()); + std::string set_speed(double F, const std::string &comment = std::string()) const; std::string travel_to_xy(const Pointf &point, const std::string &comment = std::string()); std::string travel_to_xyz(const Pointf3 &point, const std::string &comment = std::string()); std::string travel_to_z(double z, const std::string &comment = std::string()); |