hddstat.cpp: move init of cHddStat inside geInstance()

Origin commit data
------------------
Commit: c30b3ece65
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-11-13 (Thu, 13 Nov 2014)

Origin message was:
------------------
- hddstat.cpp: move init of cHddStat inside geInstance()
This commit is contained in:
vanhofen
2014-11-13 10:48:05 +01:00
parent 6c6dafe56f
commit c2173c5977

View File

@@ -41,10 +41,10 @@
#include <driver/record.h>
#include <driver/display.h>
static cHddStat *instance = NULL;
cHddStat *cHddStat::getInstance(void)
{
static cHddStat *instance = NULL;
if (!instance)
instance = new cHddStat;
return instance;