VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-25 01:44:03 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-25 01:46:37 +0100
commit84ee7076d93b56eefafb9f5e464e2fe5e56b83af (patch)
tree3abc5575abd5b11a1621d82c6b597fde21f483dc /src/Main
parent5a555deb74df9ee9c83441cff65cf63c827de0c6 (diff)
downloadVeraCrypt-84ee7076d93b56eefafb9f5e464e2fe5e56b83af.tar.gz
VeraCrypt-84ee7076d93b56eefafb9f5e464e2fe5e56b83af.zip
Linux/MacOSX: remove unecessary XML resource string replacement of %hs, not needed since Unicode rewrite.
Diffstat (limited to 'src/Main')
-rwxr-xr-xsrc/Main/Forms/VolumeCreationWizard.cpp2
-rw-r--r--src/Main/GraphicUserInterface.cpp2
-rw-r--r--src/Main/TextUserInterface.cpp2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp
index 201a4379..5605920d 100755
--- a/src/Main/Forms/VolumeCreationWizard.cpp
+++ b/src/Main/Forms/VolumeCreationWizard.cpp
@@ -920,7 +920,6 @@ namespace VeraCrypt
if (SelectedVolumePath.IsDevice())
{
wxString confirmMsg = LangString["OVERWRITEPROMPT_DEVICE"];
- confirmMsg.Replace (L"%hs", L"%s");
if (!Gui->AskYesNo (wxString::Format (confirmMsg, wxString (_("DEVICE")).c_str(), wstring (SelectedVolumePath).c_str(), L""), false, true))
return GetCurrentStep();
@@ -928,7 +927,6 @@ namespace VeraCrypt
else if (FilesystemPath (wstring (SelectedVolumePath)).IsFile())
{
wxString confirmMsg = LangString["OVERWRITEPROMPT"];
- confirmMsg.Replace (L"%hs", L"%s");
if (!Gui->AskYesNo (wxString::Format (confirmMsg, wstring (SelectedVolumePath).c_str()), false, true))
return GetCurrentStep();
diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp
index 3b8041a9..3526dcad 100644
--- a/src/Main/GraphicUserInterface.cpp
+++ b/src/Main/GraphicUserInterface.cpp
@@ -252,7 +252,6 @@ namespace VeraCrypt
// Ask user to select backup file path
wxString confirmMsg = LangString["CONFIRM_VOL_HEADER_BAK"];
- confirmMsg.Replace (L"%hs", L"%s");
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true))
return;
@@ -1384,7 +1383,6 @@ namespace VeraCrypt
// Restore header from an external backup
wxString confirmMsg = LangString["CONFIRM_VOL_HEADER_RESTORE"];
- confirmMsg.Replace (L"%hs", L"%s");
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true, true))
return;
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp
index 4005c8f1..c5d64d15 100644
--- a/src/Main/TextUserInterface.cpp
+++ b/src/Main/TextUserInterface.cpp
@@ -341,7 +341,6 @@ namespace VeraCrypt
// Ask user to select backup file path
wxString confirmMsg = L"\n" + LangString["CONFIRM_VOL_HEADER_BAK"] + L"\n";
- confirmMsg.Replace (L"%hs", L"%s");
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true))
return;
@@ -1418,7 +1417,6 @@ namespace VeraCrypt
// Restore header from an external backup
wxString confirmMsg = L"\n\n" + LangString["CONFIRM_VOL_HEADER_RESTORE"];
- confirmMsg.Replace (L"%hs", L"%s");
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true, true))
return;