Skip to content

Commit

Permalink
move config.h include before the include of ObjectFactory.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed May 7, 2024
1 parent 9e85eb1 commit a209fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/BeamAdapter/component/controller/AdaptiveBeamController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@
#define SOFA_PLUGIN_BEAMADAPTER_ADAPTIVEBEAMCONTROLLER_CPP

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/VecTypes.h>
#include <sofa/defaulttype/RigidTypes.h>

#include <BeamAdapter/config.h>
#include <BeamAdapter/component/controller/AdaptiveBeamController.inl>


namespace sofa::component::controller::_adaptivebeamcontroller_
namespace sofa::component::controller
{

using sofa::defaulttype::Rigid3Types;
using sofa::defaulttype::Rigid3Types;
using core::RegisterObject;

Expand All @@ -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<Rigid3Types> >()
;

template class SOFA_BEAMADAPTER_API AdaptiveBeamController<Rigid3Types>;


} // namespace sofa::component::controller::_adaptivebeamcontroller_
} // namespace sofa::component::controller


Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <BeamAdapter/component/BeamInterpolation.h>
#include <sofa/component/topology/container/dynamic/EdgeSetGeometryAlgorithms.h>
#include <sofa/component/topology/container/dynamic/EdgeSetTopologyModifier.h>
#include <BeamAdapter/config.h>

////////////////////////////////////////////////////////////////////////////////////////////////////
/// Declarations
Expand Down

0 comments on commit a209fd4

Please sign in to comment.