From 084a8ee85c24fbc7077d6c789c97aacdb31b4e39 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 8 Jun 2014 00:45:49 +0200 Subject: wxWidgets 3.0 compatibility modifications --- src/Main/CommandLineInterface.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Main/CommandLineInterface.cpp') diff --git a/src/Main/CommandLineInterface.cpp b/src/Main/CommandLineInterface.cpp index ccb03170..61cbd310 100644 --- a/src/Main/CommandLineInterface.cpp +++ b/src/Main/CommandLineInterface.cpp @@ -380,7 +380,7 @@ namespace TrueCrypt ArgQuick = parser.Found (L"quick"); if (parser.Found (L"random-source", &str)) - ArgRandomSourcePath = FilesystemPath (str); + ArgRandomSourcePath = FilesystemPath (str.wc_str()); if (parser.Found (L"restore-headers")) { @@ -471,7 +471,7 @@ namespace TrueCrypt if (param1IsFile) { - ArgFilePath.reset (new FilePath (parser.GetParam (0))); + ArgFilePath.reset (new FilePath (parser.GetParam (0).wc_str())); } } @@ -524,7 +524,7 @@ namespace TrueCrypt arr.Add (L""); continue; } - arr.Last() += token.empty() ? L',' : token; + arr.Last() += token.empty() ? L"," : token.wc_str(); } else arr.Add (token); @@ -562,12 +562,12 @@ namespace TrueCrypt { filteredVolumes.push_back (volume); } - else if (wxString (volume->Path) == pathFilter.GetFullPath()) + else if (wxString (wstring(volume->Path)) == pathFilter.GetFullPath()) { filteredVolumes.push_back (volume); } - else if (wxString (volume->MountPoint) == pathFilter.GetFullPath() - || (wxString (volume->MountPoint) + wxFileName::GetPathSeparator()) == pathFilter.GetFullPath()) + else if (wxString (wstring(volume->MountPoint)) == pathFilter.GetFullPath() + || (wxString (wstring(volume->MountPoint)) + wxFileName::GetPathSeparator()) == pathFilter.GetFullPath()) { filteredVolumes.push_back (volume); } -- cgit v1.2.3