mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
[libcalamares] Enforce singleton-ness of CalamaresPython::Helper
- unset instance pointer on destruction - make constructor private, and the instance accessor should create an instance if there isn't one.
This commit is contained in:
parent
86b899566e
commit
abc6914528
4 changed files with 8 additions and 7 deletions
|
@ -231,7 +231,9 @@ Helper::Helper( QObject* parent )
|
|||
}
|
||||
|
||||
Helper::~Helper()
|
||||
{}
|
||||
{
|
||||
s_instance = nullptr;
|
||||
}
|
||||
|
||||
|
||||
boost::python::dict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue