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

This commit is contained in:
svenhoefer
2014-11-13 10:48:05 +01:00
parent 86c126c937
commit c30b3ece65

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;