From 94ccaf1ab483bc391d91625a576cdc79a9015bc9 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 25 Jul 2015 13:37:12 +0200 Subject: Linux: solve compilation error on OpenSUSE when linking against system wxWidgets. OpenSUSE enables STL in wxWidgets which causes the error because implicit casts are not available. --- src/Main/Forms/KeyfileGeneratorDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/Forms/KeyfileGeneratorDialog.cpp b/src/Main/Forms/KeyfileGeneratorDialog.cpp index 5a24a255..a24bd99a 100644 --- a/src/Main/Forms/KeyfileGeneratorDialog.cpp +++ b/src/Main/Forms/KeyfileGeneratorDialog.cpp @@ -132,7 +132,7 @@ namespace VeraCrypt } { - FilePath keyfilePath((const wchar_t*) keyfileName.GetFullPath()); + FilePath keyfilePath((const wchar_t*) keyfileName.GetFullPath().c_str()); File keyfile; keyfile.Open (keyfilePath, File::CreateWrite); keyfile.Write (keyfileBuffer); -- cgit v1.2.3