1
0
Fork 0

Explicitly delete copy and assignment operators

This commit is contained in:
krcroft 2019-12-07 10:23:09 -08:00 committed by Patryk Obara
parent 8c6758c8d1
commit 48106d6046

View file

@ -147,8 +147,8 @@ public:
enum TDirSort { NOSORT, ALPHABETICAL, DIRALPHABETICAL, ALPHABETICALREV, DIRALPHABETICALREV };
DOS_Drive_Cache (void);
DOS_Drive_Cache (const char* path);
DOS_Drive_Cache (const DOS_Drive_Cache&); // prevent copying
DOS_Drive_Cache& operator= (const DOS_Drive_Cache&); // prevent assignment
DOS_Drive_Cache (const DOS_Drive_Cache&) = delete; // prevent copying
DOS_Drive_Cache& operator= (const DOS_Drive_Cache&) = delete; // prevent assignment
~DOS_Drive_Cache (void);
void SetBaseDir (const char* path);