mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 23:02:03 +08:00
Let's not return references to Slic3r::Config when we can return the shared pointer instead from methods that are going to construct a Slic3r::Config
This commit is contained in:
parent
70cd35af31
commit
d30496c5bd
@ -56,8 +56,8 @@ public:
|
||||
/// Returns whether or not this config is different from its modified state.
|
||||
bool dirty();
|
||||
|
||||
/// Loads the selected config from file and return a reference.
|
||||
Slic3r::Config& load_config();
|
||||
/// Loads the selected config from file and return a shared_ptr to that config
|
||||
config_ptr load_config();
|
||||
|
||||
/// Pass-through to Slic3r::Config, returns whether or not a config was loaded.
|
||||
bool loaded() { return !this->config.empty(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user