diff --git a/SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp b/SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp index 0d50c0e95b..bf184b5cbb 100644 --- a/SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp +++ b/SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp @@ -40,7 +40,7 @@ extern "C" { SOFAGLFW_API const char* getModuleComponentList(); } -void initExternalModule() +void init() { static bool first = true; if (first) @@ -72,15 +72,9 @@ const char* getModuleDescription() return "A GLFW Gui for SOFA."; } -const char* getModuleComponentList() -{ - //no Components in this plugin - return ""; -} - -void init() +void initExternalModule() { - initExternalModule(); + init(); } } // namespace sofaglfw diff --git a/SofaImGui/src/SofaImGui/initSofaImGui.cpp b/SofaImGui/src/SofaImGui/initSofaImGui.cpp index 340993b2b3..4bdba6a27b 100644 --- a/SofaImGui/src/SofaImGui/initSofaImGui.cpp +++ b/SofaImGui/src/SofaImGui/initSofaImGui.cpp @@ -38,7 +38,7 @@ extern "C" { SOFAIMGUI_API const char* getModuleComponentList(); } -void initExternalModule() +void init() { static bool first = true; if (first) @@ -72,15 +72,9 @@ const char* getModuleDescription() return "A ImGui Gui for SOFA."; } -const char* getModuleComponentList() -{ - //no Components in this plugin - return ""; -} - -void init() +void initExternalModule() { - initExternalModule(); + init(); } } // namespace sofaimgui