SGSubsytem name compatibility for other compilers;
changed to use const char* rather than const std::string & as this doesn't work on GCC; and besides std::string converts nicely to const char* and most of the times this is used it is actually a string literal.
This commit is contained in:
@@ -232,7 +232,7 @@ public:
|
||||
|
||||
|
||||
|
||||
SGSubsystemGroup::SGSubsystemGroup(const std::string &name) :
|
||||
SGSubsystemGroup::SGSubsystemGroup(const char *name) :
|
||||
_fixedUpdateTime(-1.0),
|
||||
_updateTimeRemainder(0.0),
|
||||
_initPosition(-1)
|
||||
@@ -837,7 +837,7 @@ namespace {
|
||||
|
||||
} // end of anonymous namespace
|
||||
|
||||
SGSubsystemMgr::SGSubsystemMgr (const std::string &name) :
|
||||
SGSubsystemMgr::SGSubsystemMgr (const char *name) :
|
||||
_groups(MAX_GROUPS)
|
||||
{
|
||||
if (global_defaultSubsystemManager == nullptr) {
|
||||
|
||||
@@ -378,7 +378,7 @@ typedef SGSharedPtr<SGSubsystem> SGSubsystemRef;
|
||||
class SGSubsystemGroup : public SGSubsystem
|
||||
{
|
||||
public:
|
||||
SGSubsystemGroup (const std::string &name);
|
||||
SGSubsystemGroup (const char *name);
|
||||
virtual ~SGSubsystemGroup ();
|
||||
|
||||
void init() override;
|
||||
@@ -501,7 +501,7 @@ public:
|
||||
MAX_GROUPS
|
||||
};
|
||||
|
||||
SGSubsystemMgr (const std::string &name);
|
||||
SGSubsystemMgr (const char *name);
|
||||
virtual ~SGSubsystemMgr ();
|
||||
|
||||
void init () override;
|
||||
|
||||
Reference in New Issue
Block a user