Use wxFileName::Mkdir instead of wxMkDir.

wxMkDir is a CRT wrapper that doesn't actually return bool.
This commit is contained in:
Alex Shvartzkop 2023-11-06 17:02:09 +03:00
parent 648b4a7689
commit 6c21e0607b
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ static bool testRepositoryConnection( COMMON_SETTINGS::GIT_REPOSITORY& repositor
// Create a temporary directory to initialize the Git repository
wxString tempDirPath = wxFileName::CreateTempFileName(wxT("kigit_temp"));
if( !wxMkDir(tempDirPath, wxS_DIR_DEFAULT ) )
if( !wxFileName::Mkdir( tempDirPath, wxS_DIR_DEFAULT ) )
{
git_libgit2_shutdown();
wxLogError( "Failed to create temporary directory for Git repository (%s): %s", tempDirPath,

View File

@ -875,7 +875,7 @@ bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps,
wxArrayString fpNames;
wxFileName newFileName( aNewFilePath );
if( !newFileName.DirExists() && !wxMkDir( aNewFilePath, wxS_DIR_DEFAULT ) )
if( !newFileName.DirExists() && !wxFileName::Mkdir( aNewFilePath, wxS_DIR_DEFAULT ) )
return false;
try