Fix compatibility with wxWidgets 3.0.5

Fixes #13808
https://gitlab.com/kicad/code/kicad/issues/13808
This commit is contained in:
jean-pierre charras 2023-02-07 21:09:03 +01:00
parent a493a2c822
commit 3d23d0e16a
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#include <sim/sim_library.h>
#include <sim/sim_library_spice.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <macros.h>
std::unique_ptr<SIM_LIBRARY> SIM_LIBRARY::Create( const wxString& aFilePath, REPORTER* aReporter,
@ -40,7 +41,7 @@ std::unique_ptr<SIM_LIBRARY> SIM_LIBRARY::Create( const wxString& aFilePath, REP
library->m_reporter = aReporter;
library->m_pathResolver = aResolver;
library->ReadFile( aFilePath.utf8_string(), aReporter );
library->ReadFile( std::string( TO_UTF8( aFilePath ) ), aReporter );
return library;
}