diff options
author | David Foerster <david.foerster@informatik.hu-berlin.de> | 2016-05-01 23:31:07 +0200 |
---|---|---|
committer | David Foerster <david.foerster@informatik.hu-berlin.de> | 2016-05-01 23:31:07 +0200 |
commit | faea63cb3c135316c035152dbdb1d5b98ae43907 (patch) | |
tree | a0d0c8d54abcf5d2519287ca25c647ec0914bb67 /src | |
parent | 0c51cfa5f610782558afc5a227cbec7a0f93a289 (diff) | |
download | VeraCrypt-faea63cb3c135316c035152dbdb1d5b98ae43907.tar.gz VeraCrypt-faea63cb3c135316c035152dbdb1d5b98ae43907.zip |
Use scoped instead of raw pointer
Diffstat (limited to 'src')
-rw-r--r-- | src/Main/Application.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp index ca9db0b1..4b013cfc 100644 --- a/src/Main/Application.cpp +++ b/src/Main/Application.cpp @@ -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) |