From: david Date: Sat, 20 Apr 2002 14:07:03 +0000 (+0000) Subject: Remove header dependencies where possible, to speed up rebuilds. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17cfbd2a7cc386e4910ac4f713fabfc0978c52bc;p=flightgear.git Remove header dependencies where possible, to speed up rebuilds. --- diff --git a/src/Model/acmodel.cxx b/src/Model/acmodel.cxx index fd6bda35e..64ef9e747 100644 --- a/src/Model/acmodel.cxx +++ b/src/Model/acmodel.cxx @@ -20,7 +20,9 @@ #include
#include
#include
+ #include "acmodel.hxx" +#include "model.hxx" diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index 08ffd139f..2898c2e93 100644 --- a/src/Model/acmodel.hxx +++ b/src/Model/acmodel.hxx @@ -15,11 +15,13 @@ SG_USING_STD(string); SG_USING_STD(vector); -#include +#include
// for FGSubsystem -#include
-#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 - - diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index 4ed1c6bbb..2a0ecc570 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -3,10 +3,13 @@ // // This file is in the Public Domain, and comes with no warranty. -#include "modelmgr.hxx" +#include #include
+#include "modelmgr.hxx" +#include "model.hxx" + FGModelMgr::FGModelMgr () : _selector(new ssgSelector) diff --git a/src/Model/modelmgr.hxx b/src/Model/modelmgr.hxx index 15933d63c..84e25839c 100644 --- a/src/Model/modelmgr.hxx +++ b/src/Model/modelmgr.hxx @@ -12,17 +12,17 @@ #include -#include +#include // for SG_USING_STD -#include -#include - -#include
- -#include "model.hxx" +#include
// 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 - - -