From ad33e50324ee9cd9a40bd112264915a567b80bc2 Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Tue, 11 Oct 2022 22:56:29 +0200 Subject: [PATCH] SGSubsystem classes: Registration of all subsystems added since mid 2018. --- src/GUI/Highlight.cxx | 4 ++++ src/Main/ErrorReporter.cxx | 4 ++++ src/Viewer/GraphicsPresets.cxx | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/src/GUI/Highlight.cxx b/src/GUI/Highlight.cxx index 5512acab6..fac356184 100644 --- a/src/GUI/Highlight.cxx +++ b/src/GUI/Highlight.cxx @@ -668,3 +668,7 @@ void Highlight::addPropertyProperty(const std::string& from0, const std::string& } } } + +// Register the subsystem. +SGSubsystemMgr::Registrant registrantHighlight( + SGSubsystemMgr::INIT); diff --git a/src/Main/ErrorReporter.cxx b/src/Main/ErrorReporter.cxx index da9171a32..af7ec44a9 100644 --- a/src/Main/ErrorReporter.cxx +++ b/src/Main/ErrorReporter.cxx @@ -942,3 +942,7 @@ std::string ErrorReporter::threadSpecificContextValue(const std::string& key) } // namespace flightgear + +// Register the subsystem. +SGSubsystemMgr::Registrant registrantErrorReporter( + SGSubsystemMgr::GENERAL); diff --git a/src/Viewer/GraphicsPresets.cxx b/src/Viewer/GraphicsPresets.cxx index e47d8e35d..bb08415d5 100644 --- a/src/Viewer/GraphicsPresets.cxx +++ b/src/Viewer/GraphicsPresets.cxx @@ -547,4 +547,9 @@ bool GraphicsPresets::saveToXML(const SGPath& path, const std::string& name, con return true; } +// Register the subsystem. +SGSubsystemMgr::Registrant registrantGraphicsPresets( + SGSubsystemMgr::DISPLAY); + + } // namespace flightgear