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:
Edward d'Auvergne 2018-05-08 10:17:34 +02:00
parent 5bf28d3f90
commit c11557316d

View File

@ -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(),