diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-05-02 22:43:22 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-05-02 22:43:22 +0300 |
commit | bf541a1fed2632cf66de8dfda314ffb14c9d7ba7 (patch) | |
tree | 3f18a54f2a74a5b14ddc6cb25bf9793e2aeaedda /xs/src/libslic3r/PlaceholderParser.hpp | |
parent | a16dda0885a269b3d96e9106309aad5cf4a68edd (diff) |
Refactoring in PlaceholderParser
Diffstat (limited to 'xs/src/libslic3r/PlaceholderParser.hpp')
-rw-r--r-- | xs/src/libslic3r/PlaceholderParser.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xs/src/libslic3r/PlaceholderParser.hpp b/xs/src/libslic3r/PlaceholderParser.hpp index eb061fab2..25d1bcdc3 100644 --- a/xs/src/libslic3r/PlaceholderParser.hpp +++ b/xs/src/libslic3r/PlaceholderParser.hpp @@ -5,6 +5,7 @@ #include <myinit.h> #include <map> #include <string> +#include <vector> #include "PrintConfig.hpp" @@ -20,12 +21,8 @@ class PlaceholderParser void update_timestamp(); void apply_config(DynamicPrintConfig &config); void set(const std::string &key, const std::string &value); - - private: - template<class T> - void set_multiple_from_vector( - const std::string &key, ConfigOptionVector<T> &opt); - std::string _int_to_string(int value) const; + void set(const std::string &key, int value); + void set(const std::string &key, const std::vector<std::string> &values); }; } |