mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user