IO_BASE: don't try to modify the case of a temporary string in-place, work on a copy

(cherry picked from commit 6a0efe6883b8032bdde6231efae9689df5532564)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20228
This commit is contained in:
Tomasz Wlostowski 2025-03-05 00:23:04 +01:00 committed by Jeff Young
parent 46ef12ff4d
commit 648c3aec39

View File

@ -76,7 +76,7 @@ bool IO_BASE::CanReadLibrary( const wxString& aFileName ) const
{
const std::vector<std::string>& exts = desc.m_FileExtensions;
wxString fileExt = wxFileName( aFileName ).GetExt().MakeLower();
wxString fileExt = wxFileName( aFileName ).GetExt().Lower();
for( const std::string& ext : exts )
{