mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
MacOSX: fix warning by displacing declaration of variable used only under Linux
This commit is contained in:
@@ -36,7 +36,6 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
|
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
|
||||||
{
|
{
|
||||||
wxStandardPaths& stdPaths = wxStandardPaths::Get();
|
|
||||||
DirectoryPath configDir;
|
DirectoryPath configDir;
|
||||||
|
|
||||||
if (!Core->IsInPortableMode())
|
if (!Core->IsInPortableMode())
|
||||||
@@ -46,6 +45,7 @@ namespace VeraCrypt
|
|||||||
configPath.Normalize();
|
configPath.Normalize();
|
||||||
configDir = wstring (configPath.GetFullPath());
|
configDir = wstring (configPath.GetFullPath());
|
||||||
#else
|
#else
|
||||||
|
wxStandardPaths& stdPaths = wxStandardPaths::Get();
|
||||||
configDir = wstring (stdPaths.GetUserDataDir());
|
configDir = wstring (stdPaths.GetUserDataDir());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user