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:
parent
251a6ea8cb
commit
6a0efe6883
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user