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

Origin commit data
------------------
Branch: ni/coolstream
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()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-11-13 10:48:05 +01:00
parent 321d9b6f4b
commit c0a0d6987c

View File

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