mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 18:20:36 +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.
|
/// Returns whether or not this config is different from its modified state.
|
||||||
bool dirty();
|
bool dirty();
|
||||||
|
|
||||||
/// Loads the selected config from file and return a reference.
|
/// Loads the selected config from file and return a shared_ptr to that config
|
||||||
Slic3r::Config& load_config();
|
config_ptr load_config();
|
||||||
|
|
||||||
/// Pass-through to Slic3r::Config, returns whether or not a config was loaded.
|
/// Pass-through to Slic3r::Config, returns whether or not a config was loaded.
|
||||||
bool loaded() { return !this->config.empty(); }
|
bool loaded() { return !this->config.empty(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user