Skip to content

Commit

Permalink
[all] Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Oct 6, 2023
1 parent bb7d9fd commit 9387b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugin/src/SofaPython3/PythonEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void PythonEnvironment::Init()
for( const auto& elem : map)
{
Plugin p = elem.second;
if ( p.getModuleName() == sofa_tostring(SOFA_TARGET) )
if ( strcmp( p.getModuleName(), sofa_tostring(SOFA_TARGET)) == 0 )
{
pluginLibraryPath = elem.first;
}
Expand Down
2 changes: 1 addition & 1 deletion Plugin/src/SofaPython3/PythonEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class SOFAPYTHON3_API PythonEnvironment
struct SceneLoaderListerner : public SceneLoader::Listener
{
/// possibly unload python modules to force importing their eventual modifications
virtual void rightBeforeLoadingScene();
virtual void rightBeforeLoadingScene() override;
static SceneLoaderListerner* getInstance() {
static SceneLoaderListerner sceneLoaderListerner;
return &sceneLoaderListerner; }
Expand Down

0 comments on commit 9387b45

Please sign in to comment.