From 0ba2e8708e8a93fa78d0774252d6a6a93e5f1fd5 Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne <edward@nmr-relax.com> Date: Fri, 11 Dec 2015 23:51:41 +0100 Subject: [PATCH] Time: Renamed the sunsolver.cxx to bodysolver.cxx. This is in preparation for generalising the code for handling all solar system bodies. --- src/Time/CMakeLists.txt | 6 +++--- src/Time/TimeManager.cxx | 2 +- src/Time/{sunsolver.cxx => bodysolver.cxx} | 4 ++-- src/Time/{sunsolver.hxx => bodysolver.hxx} | 2 +- src/Time/light.cxx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename src/Time/{sunsolver.cxx => bodysolver.cxx} (98%) rename src/Time/{sunsolver.hxx => bodysolver.hxx} (96%) diff --git a/src/Time/CMakeLists.txt b/src/Time/CMakeLists.txt index cdf26776e..5366a2477 100644 --- a/src/Time/CMakeLists.txt +++ b/src/Time/CMakeLists.txt @@ -3,13 +3,13 @@ include(FlightGearComponent) set(SOURCES TimeManager.cxx light.cxx - sunsolver.cxx + bodysolver.cxx ) set(HEADERS TimeManager.hxx light.hxx - sunsolver.hxx + bodysolver.hxx ) -flightgear_component(Time "${SOURCES}" "${HEADERS}") \ No newline at end of file +flightgear_component(Time "${SOURCES}" "${HEADERS}") diff --git a/src/Time/TimeManager.cxx b/src/Time/TimeManager.cxx index 36c41a9c7..90812c218 100644 --- a/src/Time/TimeManager.cxx +++ b/src/Time/TimeManager.cxx @@ -33,7 +33,7 @@ #include <Main/fg_props.hxx> #include <Main/globals.hxx> -#include <Time/sunsolver.hxx> +#include <Time/bodysolver.hxx> using std::string; diff --git a/src/Time/sunsolver.cxx b/src/Time/bodysolver.cxx similarity index 98% rename from src/Time/sunsolver.cxx rename to src/Time/bodysolver.cxx index cc8a64e8f..5d25e65c0 100644 --- a/src/Time/sunsolver.cxx +++ b/src/Time/bodysolver.cxx @@ -1,5 +1,5 @@ /* - * sunsolver.cxx - given a location on earth and a time of day/date, + * bodysolver.cxx - given a location on earth and a time of day/date, * find the number of seconds to various sun positions. * * Written by Curtis Olson, started September 2003. @@ -37,7 +37,7 @@ #include <Main/globals.hxx> #include <Main/fg_props.hxx> -#include "sunsolver.hxx" +#include "bodysolver.hxx" static const time_t day_secs = 86400; diff --git a/src/Time/sunsolver.hxx b/src/Time/bodysolver.hxx similarity index 96% rename from src/Time/sunsolver.hxx rename to src/Time/bodysolver.hxx index 16d312231..f0cb0365a 100644 --- a/src/Time/sunsolver.hxx +++ b/src/Time/bodysolver.hxx @@ -1,5 +1,5 @@ /* - * sunsolver.hxx - given a location on earth and a time of day/date, + * bodysolver.hxx - given a location on earth and a time of day/date, * find the number of seconds to various sun positions. * * Written by Curtis Olson, started September 2003. diff --git a/src/Time/light.cxx b/src/Time/light.cxx index f08fd0a9e..f50b4137f 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -46,7 +46,7 @@ #include <Viewer/view.hxx> #include "light.hxx" -#include "sunsolver.hxx" +#include "bodysolver.hxx" // Constructor FGLight::FGLight ()