Use scoped instead of raw pointer

This commit is contained in:
David Foerster 2016-05-01 23:31:07 +02:00
parent 0c51cfa5f6
commit faea63cb3c

View File

@ -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)