From a9bd65a4e9597032fd1ad9c768bb2b984128eda2 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 10 Nov 2018 22:28:33 -0600 Subject: [PATCH] Add passthroughs for Slic3r::ConfigBase::has and diff --- xs/src/libslic3r/Config.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xs/src/libslic3r/Config.hpp b/xs/src/libslic3r/Config.hpp index 67a9667fb..3ed94f7e8 100644 --- a/xs/src/libslic3r/Config.hpp +++ b/xs/src/libslic3r/Config.hpp @@ -127,6 +127,12 @@ public: /// Allow other configs to be applied to this one. void apply(const Slic3r::ConfigBase& other) { _config.apply(other); } + /// Pass-through of diff() + t_config_option_keys diff(const config_ptr& other) { return _config.diff(other->config()); }; + t_config_option_keys diff(const Slic3r::Config& other) { return _config.diff(other.config()); } + + /// Return whether or not the underlying ConfigBase contains a key k + bool has(const t_config_option_key& k) const { return _config.has(k); }; /// Do not use; prefer static factory methods instead. Config();