1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Static Code Analysis : Correctly initialize member variables in various constructors

This commit is contained in:
Mounir IDRASSI
2014-07-09 02:01:57 +02:00
parent 9bb962c8bb
commit f19cfb3361
4 changed files with 14 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ namespace VeraCrypt
class File
{
public:
File () : FileOpen (false) { }
File () : Elevated (false), FileOpen (false), FilePointerPosition(0), Handle(NULL), IsDevice(false) { }
File (string path, bool readOnly = false, bool create = false);
~File () { Close(); }