1
0
Fork 0

submodel: Maintenance

virtual default dtor
This commit is contained in:
Scott Giese 2022-01-15 19:59:04 -06:00
parent 912d08fa59
commit f5acb22929
2 changed files with 4 additions and 12 deletions

View file

@ -44,10 +44,6 @@ FGSubmodelMgr::FGSubmodelMgr()
_found_sub = true; _found_sub = true;
} }
FGSubmodelMgr::~FGSubmodelMgr()
{
}
FGAIManager* FGSubmodelMgr::aiManager() FGAIManager* FGSubmodelMgr::aiManager()
{ {
return globals->get_subsystem<FGAIManager>(); return globals->get_subsystem<FGAIManager>();

View file

@ -3,9 +3,10 @@
// //
// This file is in the Public Domain and comes with no warranty. // This file is in the Public Domain and comes with no warranty.
#pragma once
#ifndef __SYSTEMS_SUBMODEL_HXX #include <string>
#define __SYSTEMS_SUBMODEL_HXX 1 #include <vector>
#include <simgear/props/props.hxx> #include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx> #include <simgear/structure/subsystem_mgr.hxx>
@ -13,9 +14,6 @@
#include <Autopilot/inputvalue.hxx> #include <Autopilot/inputvalue.hxx>
#include <vector>
#include <string>
class FGAIBase; class FGAIBase;
class FGAIManager; class FGAIManager;
@ -94,7 +92,7 @@ public:
} IC_struct; } IC_struct;
FGSubmodelMgr(); FGSubmodelMgr();
~FGSubmodelMgr() override; virtual ~FGSubmodelMgr() = default;
// Subsystem API. // Subsystem API.
void bind() override; void bind() override;
@ -189,5 +187,3 @@ private:
SGVec3d getCartOffsetPos(submodel* sm) const; SGVec3d getCartOffsetPos(submodel* sm) const;
void setOffsetPos(submodel* sm); void setOffsetPos(submodel* sm);
}; };
#endif // __SYSTEMS_SUBMODEL_HXX