From 4bc352ae608e27ab2a324514c5e30a09f390d8b0 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Tue, 17 Jul 2018 10:43:30 -0500 Subject: [PATCH] Marked override functions as override --- xs/src/libslic3r/ConfigBase.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xs/src/libslic3r/ConfigBase.hpp b/xs/src/libslic3r/ConfigBase.hpp index 419dcfd30..fd4435c26 100644 --- a/xs/src/libslic3r/ConfigBase.hpp +++ b/xs/src/libslic3r/ConfigBase.hpp @@ -102,18 +102,18 @@ class ConfigOptionFloat : public ConfigOptionSingle ConfigOptionFloat(double _value) : ConfigOptionSingle(_value) {}; ConfigOptionFloat* clone() const { return new ConfigOptionFloat(this->value); }; - double getFloat() const { return this->value; }; - void setFloat(double val) { this->value = val; } - void setInt(int val) { this->value = val; } + double getFloat() const override { return this->value; }; + void setFloat(double val) override { this->value = val; } + void setInt(int val) override { this->value = val; } std::string getString() const override { return trim_zeroes(std::to_string(this->value)); } - std::string serialize() const { + std::string serialize() const override { std::ostringstream ss; ss << this->value; return ss.str(); }; - bool deserialize(std::string str, bool append = false) { + bool deserialize(std::string str, bool append = false) override { std::istringstream iss(str); iss >> this->value; return !iss.fail(); @@ -167,19 +167,19 @@ class ConfigOptionInt : public ConfigOptionSingle public: ConfigOptionInt() : ConfigOptionSingle(0) {}; ConfigOptionInt(double _value) : ConfigOptionSingle(_value) {}; - ConfigOptionInt* clone() const { return new ConfigOptionInt(this->value); }; + ConfigOptionInt* clone() const override { return new ConfigOptionInt(this->value); }; - int getInt() const { return this->value; }; - void setInt(int val) { this->value = val; }; + int getInt() const override { return this->value; }; + void setInt(int val) override { this->value = val; }; std::string getString() const override { return std::to_string(this->value); } - std::string serialize() const { + std::string serialize() const override { std::ostringstream ss; ss << this->value; return ss.str(); }; - bool deserialize(std::string str, bool append = false) { + bool deserialize(std::string str, bool append = false) override { std::istringstream iss(str); iss >> this->value; return !iss.fail(); @@ -191,7 +191,7 @@ class ConfigOptionInts : public ConfigOptionVector public: ConfigOptionInts() {}; ConfigOptionInts(const std::vector _values) : ConfigOptionVector(_values) {}; - ConfigOptionInts* clone() const { return new ConfigOptionInts(this->values); }; + ConfigOptionInts* clone() const override { return new ConfigOptionInts(this->values); }; std::string serialize() const { std::ostringstream ss;