diff --git a/common/filename_resolver.cpp b/common/filename_resolver.cpp index 3139c6028b..93bda01b10 100644 --- a/common/filename_resolver.cpp +++ b/common/filename_resolver.cpp @@ -974,7 +974,7 @@ bool FILENAME_RESOLVER::ValidateFileName( const wxString& aFileName, bool& hasAl wxString filename = aFileName; wxString lpath; - size_t aliasStart = aFileName.starts_with( ':' ) ? 1 : 0; + size_t aliasStart = aFileName.StartsWith( ':' ) ? 1 : 0; size_t aliasEnd = aFileName.find( ':', aliasStart ); // ensure that the file separators suit the current platform diff --git a/utils/kicad2step/pcb/3d_resolver.cpp b/utils/kicad2step/pcb/3d_resolver.cpp index 51519b3a08..a9d43c5ab1 100644 --- a/utils/kicad2step/pcb/3d_resolver.cpp +++ b/utils/kicad2step/pcb/3d_resolver.cpp @@ -909,7 +909,7 @@ bool S3D_RESOLVER::ValidateFileName( const wxString& aFileName, bool& hasAlias ) wxString filename = aFileName; wxString lpath; - size_t aliasStart = aFileName.starts_with( ':' ) ? 1 : 0; + size_t aliasStart = aFileName.StartsWith( ':' ) ? 1 : 0; size_t aliasEnd = aFileName.find( ':' ); // ensure that the file separators suit the current platform