VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Foerster <david.foerster@informatik.hu-berlin.de>2016-05-01 21:31:07 (GMT)
committerDavid Foerster <david.foerster@informatik.hu-berlin.de>2016-05-01 21:31:07 (GMT)
commitfaea63cb3c135316c035152dbdb1d5b98ae43907 (patch)
treea0d0c8d54abcf5d2519287ca25c647ec0914bb67
parent0c51cfa5f610782558afc5a227cbec7a0f93a289 (diff)
downloadVeraCrypt-faea63cb3c135316c035152dbdb1d5b98ae43907.zip
VeraCrypt-faea63cb3c135316c035152dbdb1d5b98ae43907.tar.gz
Use scoped instead of raw pointerrefs/pull/55/head
-rw-r--r--src/Main/Application.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp
index ca9db0b..4b013cf 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)