mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 12:03:28 +01:00
Use scoped instead of raw pointer
This commit is contained in:
parent
0c51cfa5f6
commit
faea63cb3c
@ -88,7 +88,7 @@ namespace VeraCrypt
|
||||
|
||||
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
|
||||
{
|
||||
static const wxString *configDirC = NULL;
|
||||
static wxScopedPtr<const wxString> configDirC;
|
||||
static bool configDirExists = false;
|
||||
|
||||
if (!configDirExists)
|
||||
@ -108,7 +108,7 @@ namespace VeraCrypt
|
||||
}
|
||||
|
||||
EnsureEndsWithPathSeparator(*configDir);
|
||||
configDirC = configDir;
|
||||
configDirC.reset(configDir);
|
||||
}
|
||||
|
||||
if (createConfigDir)
|
||||
|
Loading…
Reference in New Issue
Block a user