Remove header dependencies where possible, to speed up rebuilds.
This commit is contained in:
parent
4c101d7199
commit
17cfbd2a7c
4 changed files with 18 additions and 16 deletions
|
@ -20,7 +20,9 @@
|
|||
#include <Main/globals.hxx>
|
||||
#include <Main/fg_props.hxx>
|
||||
#include <Main/viewmgr.hxx>
|
||||
|
||||
#include "acmodel.hxx"
|
||||
#include "model.hxx"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -15,11 +15,13 @@
|
|||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
|
||||
#include <simgear/misc/props.hxx>
|
||||
#include <Main/fgfs.hxx> // for FGSubsystem
|
||||
|
||||
#include <Main/fgfs.hxx>
|
||||
|
||||
#include "model.hxx"
|
||||
// Don't pull in the headers, since we don't need them here.
|
||||
class ssgRoot;
|
||||
class ssgSelector;
|
||||
class FG3DModel;
|
||||
|
||||
|
||||
class FGAircraftModel : public FGSubsystem
|
||||
|
@ -47,5 +49,3 @@ private:
|
|||
};
|
||||
|
||||
#endif // __ACMODEL_HXX
|
||||
|
||||
|
||||
|
|
|
@ -3,10 +3,13 @@
|
|||
//
|
||||
// This file is in the Public Domain, and comes with no warranty.
|
||||
|
||||
#include "modelmgr.hxx"
|
||||
#include <plib/ssg.h>
|
||||
|
||||
#include <Main/fg_props.hxx>
|
||||
|
||||
#include "modelmgr.hxx"
|
||||
#include "model.hxx"
|
||||
|
||||
|
||||
FGModelMgr::FGModelMgr ()
|
||||
: _selector(new ssgSelector)
|
||||
|
|
|
@ -12,17 +12,17 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include <plib/ssg.h>
|
||||
#include <simgear/compiler.h> // for SG_USING_STD
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
#include <simgear/misc/props.hxx>
|
||||
|
||||
#include <Main/fgfs.hxx>
|
||||
|
||||
#include "model.hxx"
|
||||
#include <Main/fgfs.hxx> // for FGSubsystem
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
// Don't pull in headers, since we don't need them here.
|
||||
class ssgSelector;
|
||||
class SGPropertyNode;
|
||||
class FG3DModel;
|
||||
|
||||
|
||||
/**
|
||||
* Manage a list of user-specified models.
|
||||
|
@ -62,6 +62,3 @@ private:
|
|||
};
|
||||
|
||||
#endif // __MODELMGR_HXX
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue