From 6a0efe6883b8032bdde6231efae9689df5532564 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski <tomasz.wlostowski@cern.ch> Date: Wed, 5 Mar 2025 00:23:04 +0100 Subject: [PATCH] IO_BASE: don't try to modify the case of a temporary string in-place, work on a copy --- common/io/io_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/io/io_base.cpp b/common/io/io_base.cpp index 722986af4c..b099d9045a 100644 --- a/common/io/io_base.cpp +++ b/common/io/io_base.cpp @@ -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 ) {