1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

F : Changed scope of variable

This commit is contained in:
Ruben S. Montero 2018-03-22 18:15:55 +01:00
parent 31429d8d40
commit 87cb73efee
2 changed files with 3 additions and 6 deletions
src/scheduler
include
src/sched

@ -42,19 +42,19 @@ class SchedulerTemplate;
class Scheduler: public ActionListener
{
public:
static Scheduler* sched;
void start();
virtual void register_policies(const SchedulerTemplate& conf){};
static Scheduler& instance(Scheduler* the_sched=0)
{
static Scheduler * sched = 0;
if ( the_sched != 0)
{
sched = the_sched;
}
return *sched;
}

@ -37,9 +37,6 @@
using namespace std;
Scheduler* Scheduler::sched = 0;
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */