Fix an obscure (but annoying) compil warning perhaps gcc 13 specific.

This commit is contained in:
jean-pierre charras 2023-09-01 20:20:25 +02:00
parent 4d84bee6f6
commit 3a630fc5ab
1 changed files with 3 additions and 1 deletions

View File

@ -700,7 +700,9 @@ int KICAD_MANAGER_CONTROL::ShowPlayer( const TOOL_EVENT& aEvent )
if( !filepath.IsEmpty() )
{
if( !player->OpenProjectFiles( std::vector<wxString>( 1, filepath ) ) )
std::vector<wxString> file_list{ filepath };
if( !player->OpenProjectFiles( file_list ) )
{
player->Destroy();
return -1;