From a209fd45de2054342a9edd98b48a41112df5ce57 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Tue, 7 May 2024 15:15:44 +0200 Subject: [PATCH] move config.h include before the include of ObjectFactory.h --- .../component/controller/AdaptiveBeamController.cpp | 10 ++++------ .../component/controller/AdaptiveBeamController.h | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/BeamAdapter/component/controller/AdaptiveBeamController.cpp b/src/BeamAdapter/component/controller/AdaptiveBeamController.cpp index 8a2c10a77..d4094b39c 100644 --- a/src/BeamAdapter/component/controller/AdaptiveBeamController.cpp +++ b/src/BeamAdapter/component/controller/AdaptiveBeamController.cpp @@ -34,18 +34,16 @@ #define SOFA_PLUGIN_BEAMADAPTER_ADAPTIVEBEAMCONTROLLER_CPP //////////////////////// Inclusion of headers...from wider to narrower/closer ////////////////////// +#include #include #include #include -#include #include - -namespace sofa::component::controller::_adaptivebeamcontroller_ +namespace sofa::component::controller { -using sofa::defaulttype::Rigid3Types; using sofa::defaulttype::Rigid3Types; using core::RegisterObject; @@ -58,13 +56,13 @@ using core::RegisterObject; //////////////////////////////////////////////////////////////////////////////////////////////////// //TODO(dmarchal 2017-06-01): Il faut remplacer les descriptions dans RegisterObject par un vrai description -static int AdaptiveBeamControllerClass = RegisterObject("Adaptive beam controller") +int AdaptiveBeamControllerClass = RegisterObject("Adaptive beam controller") .add< AdaptiveBeamController >() ; template class SOFA_BEAMADAPTER_API AdaptiveBeamController; -} // namespace sofa::component::controller::_adaptivebeamcontroller_ +} // namespace sofa::component::controller diff --git a/src/BeamAdapter/component/controller/AdaptiveBeamController.h b/src/BeamAdapter/component/controller/AdaptiveBeamController.h index a62525801..7d8bb3c3d 100644 --- a/src/BeamAdapter/component/controller/AdaptiveBeamController.h +++ b/src/BeamAdapter/component/controller/AdaptiveBeamController.h @@ -43,6 +43,7 @@ #include #include #include +#include //////////////////////////////////////////////////////////////////////////////////////////////////// /// Declarations