From a0527fc53b00eb46abe7edc6117136fa5e01b551 Mon Sep 17 00:00:00 2001 From: Johannes Obermayr Date: Thu, 20 Aug 2015 22:23:43 +0200 Subject: [PATCH] Mkdir() doesn't allow const qualifier [-fpermissive] Fixes: error: passing 'const wxFileName' as 'this' argument of 'bool wxFileName::Mkdir(int, int)' discards qualifiers [-fpermissive] --- pcsx2/gui/MemoryCardFolder.cpp | 2 +- pcsx2/gui/MemoryCardFolder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/gui/MemoryCardFolder.cpp b/pcsx2/gui/MemoryCardFolder.cpp index 834ea796f3..2b5493c793 100644 --- a/pcsx2/gui/MemoryCardFolder.cpp +++ b/pcsx2/gui/MemoryCardFolder.cpp @@ -1362,7 +1362,7 @@ void FileAccessHelper::WriteMetadata( const wxFileName& folderName, MemoryCardFi WriteMetadata( metadataIsNonstandard, fn, entry ); } -void FileAccessHelper::WriteMetadata( bool metadataIsNonstandard, const wxFileName& metadataFilename, const MemoryCardFileEntry* const entry ) { +void FileAccessHelper::WriteMetadata( bool metadataIsNonstandard, wxFileName& metadataFilename, const MemoryCardFileEntry* const entry ) { if ( metadataIsNonstandard ) { // write metadata of file if it's nonstandard if ( !metadataFilename.DirExists() ) { diff --git a/pcsx2/gui/MemoryCardFolder.h b/pcsx2/gui/MemoryCardFolder.h index c09b23d0b3..2f7378f23f 100644 --- a/pcsx2/gui/MemoryCardFolder.h +++ b/pcsx2/gui/MemoryCardFolder.h @@ -228,7 +228,7 @@ protected: void CloseFileHandle( wxFFile* file, const MemoryCardFileEntry* entry = nullptr ); void WriteMetadata( const wxFileName& folderName, MemoryCardFileMetadataReference* fileRef ); - void WriteMetadata( bool metadataIsNonstandard, const wxFileName& metadataFilename, const MemoryCardFileEntry* const entry ); + void WriteMetadata( bool metadataIsNonstandard, wxFileName& metadataFilename, const MemoryCardFileEntry* const entry ); }; // --------------------------------------------------------------------------------------