7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-03-30 06:56:57 +00:00

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

This commit is contained in:
Tomasz Wlostowski 2025-03-05 00:23:04 +01:00
parent 251a6ea8cb
commit 6a0efe6883

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 )
{