SGSubsystemMgr: Changed the Registrant class argument order.
The updateInterval argument is used a lot less than the dependency list, so these have been swapped. That simplifies the registration code in the subsystem implementations as the updateInterval default of 0.0 no longer need to be supplied.
This commit is contained in:
@@ -616,8 +616,9 @@ public:
|
||||
class Registrant
|
||||
{
|
||||
public:
|
||||
Registrant(GroupType group = GENERAL, double updateInterval = 0.0,
|
||||
std::initializer_list<Dependency> deps = {})
|
||||
Registrant(GroupType group = GENERAL,
|
||||
std::initializer_list<Dependency> deps = {},
|
||||
double updateInterval = 0.0)
|
||||
{
|
||||
SubsystemFactoryFunctor factory = [](){ return new T; };
|
||||
SGSubsystemMgr::registerSubsystem(T::staticSubsystemClassId(),
|
||||
@@ -634,8 +635,8 @@ public:
|
||||
{
|
||||
public:
|
||||
InstancedRegistrant(GroupType group = GENERAL,
|
||||
double updateInterval = 0.0,
|
||||
std::initializer_list<Dependency> deps = {})
|
||||
std::initializer_list<Dependency> deps = {},
|
||||
double updateInterval = 0.0)
|
||||
{
|
||||
SubsystemFactoryFunctor factory = [](){ return new T; };
|
||||
SGSubsystemMgr::registerSubsystem(T::staticSubsystemClassId(),
|
||||
|
||||
Reference in New Issue
Block a user