[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:
Adriaan de Groot 2018-01-17 06:18:43 -05:00
parent 86b899566e
commit abc6914528
4 changed files with 8 additions and 7 deletions

View file

@ -41,9 +41,6 @@ public:
, m_queue( queue )
, m_jobIndex( 0 )
{
#ifdef WITH_PYTHON
new CalamaresPython::Helper( this );
#endif
}
void setJobs( const JobList& jobs )