mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/MacOSX: Fix build error when using strict wxWidgets library that doesn't allow implicit conversions.
This commit is contained in:
committed by
Mounir IDRASSI
parent
646679da4d
commit
1290e7836f
@@ -401,7 +401,7 @@ namespace VeraCrypt
|
|||||||
ArgNewKeyfiles = ToKeyfileList (str);
|
ArgNewKeyfiles = ToKeyfileList (str);
|
||||||
|
|
||||||
if (parser.Found (L"new-password", &str))
|
if (parser.Found (L"new-password", &str))
|
||||||
ArgNewPassword = ToUTF8Password (str);
|
ArgNewPassword = ToUTF8Password (str.c_str());
|
||||||
|
|
||||||
if (parser.Found (L"new-pim", &str))
|
if (parser.Found (L"new-pim", &str))
|
||||||
{
|
{
|
||||||
@@ -440,7 +440,7 @@ namespace VeraCrypt
|
|||||||
{
|
{
|
||||||
if (Preferences.UseStandardInput)
|
if (Preferences.UseStandardInput)
|
||||||
throw_err (L"--password cannot be used with --stdin");
|
throw_err (L"--password cannot be used with --stdin");
|
||||||
ArgPassword = ToUTF8Password (str);
|
ArgPassword = ToUTF8Password (str.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parser.Found (L"pim", &str))
|
if (parser.Found (L"pim", &str))
|
||||||
@@ -481,7 +481,7 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
if (parser.Found (L"protection-password", &str))
|
if (parser.Found (L"protection-password", &str))
|
||||||
{
|
{
|
||||||
ArgMountOptions.ProtectionPassword = ToUTF8Password (str);
|
ArgMountOptions.ProtectionPassword = ToUTF8Password (str.c_str());
|
||||||
ArgMountOptions.Protection = VolumeProtection::HiddenVolumeReadOnly;
|
ArgMountOptions.Protection = VolumeProtection::HiddenVolumeReadOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user