From ce7fab744bbb575dc29956254851b516c5cffc7f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 26 Oct 2014 17:25:31 +0100 Subject: MacOSX: fix warning by displacing declaration of variable used only under Linux --- src/Main/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp index 2d7db155..e579142b 100644 --- a/src/Main/Application.cpp +++ b/src/Main/Application.cpp @@ -36,7 +36,6 @@ namespace VeraCrypt FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir) { - wxStandardPaths& stdPaths = wxStandardPaths::Get(); DirectoryPath configDir; if (!Core->IsInPortableMode()) @@ -46,6 +45,7 @@ namespace VeraCrypt configPath.Normalize(); configDir = wstring (configPath.GetFullPath()); #else + wxStandardPaths& stdPaths = wxStandardPaths::Get(); configDir = wstring (stdPaths.GetUserDataDir()); #endif } -- cgit v1.2.3