Mkdir() doesn't allow const qualifier [-fpermissive]

Fixes: error: passing 'const wxFileName' as 'this' argument of 'bool wxFileName::Mkdir(int, int)' discards qualifiers [-fpermissive]
This commit is contained in:
Johannes Obermayr 2015-08-20 22:23:43 +02:00
parent 9f291a6666
commit a0527fc53b
2 changed files with 2 additions and 2 deletions

View File

@ -1362,7 +1362,7 @@ void FileAccessHelper::WriteMetadata( const wxFileName& folderName, MemoryCardFi
WriteMetadata( metadataIsNonstandard, fn, entry ); 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 ) { if ( metadataIsNonstandard ) {
// write metadata of file if it's nonstandard // write metadata of file if it's nonstandard
if ( !metadataFilename.DirExists() ) { if ( !metadataFilename.DirExists() ) {

View File

@ -228,7 +228,7 @@ protected:
void CloseFileHandle( wxFFile* file, const MemoryCardFileEntry* entry = nullptr ); void CloseFileHandle( wxFFile* file, const MemoryCardFileEntry* entry = nullptr );
void WriteMetadata( const wxFileName& folderName, MemoryCardFileMetadataReference* fileRef ); 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 );
}; };
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------