mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: Fix gcc-6 compilation errors.
This commit is contained in:
@@ -454,11 +454,11 @@ namespace VeraCrypt
|
|||||||
libExtension = wxDynamicLibrary::CanonicalizeName (L"x");
|
libExtension = wxDynamicLibrary::CanonicalizeName (L"x");
|
||||||
|
|
||||||
#ifdef TC_MACOSX
|
#ifdef TC_MACOSX
|
||||||
extensions.push_back (make_pair (L"dylib", LangString["DLL_FILES"]));
|
extensions.push_back (make_pair (L"dylib", LangString["DLL_FILES"].ToStdWstring()));
|
||||||
#endif
|
#endif
|
||||||
if (!libExtension.empty())
|
if (!libExtension.empty())
|
||||||
{
|
{
|
||||||
extensions.push_back (make_pair (libExtension.Mid (libExtension.find (L'.') + 1), LangString["DLL_FILES"]));
|
extensions.push_back (make_pair (libExtension.Mid (libExtension.find (L'.') + 1).ToStdWstring(), LangString["DLL_FILES"].ToStdWstring()));
|
||||||
extensions.push_back (make_pair (L"*", L""));
|
extensions.push_back (make_pair (L"*", L""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1599,7 +1599,7 @@ namespace VeraCrypt
|
|||||||
FilePath GraphicUserInterface::SelectVolumeFile (wxWindow *parent, bool saveMode, const DirectoryPath &directory) const
|
FilePath GraphicUserInterface::SelectVolumeFile (wxWindow *parent, bool saveMode, const DirectoryPath &directory) const
|
||||||
{
|
{
|
||||||
list < pair <wstring, wstring> > extensions;
|
list < pair <wstring, wstring> > extensions;
|
||||||
extensions.push_back (make_pair (L"tc", LangString["TC_VOLUMES"]));
|
extensions.push_back (make_pair (L"tc", LangString["TC_VOLUMES"].ToStdWstring()));
|
||||||
|
|
||||||
FilePathList selFiles = Gui->SelectFiles (parent, LangString[saveMode ? "OPEN_NEW_VOLUME" : "OPEN_VOL_TITLE"], saveMode, false, extensions, directory);
|
FilePathList selFiles = Gui->SelectFiles (parent, LangString[saveMode ? "OPEN_NEW_VOLUME" : "OPEN_VOL_TITLE"], saveMode, false, extensions, directory);
|
||||||
|
|
||||||
|
|||||||
@@ -49,13 +49,13 @@ namespace VeraCrypt
|
|||||||
strBuf.CopyFrom (res);
|
strBuf.CopyFrom (res);
|
||||||
return string (reinterpret_cast <char *> (strBuf.Ptr()));
|
return string (reinterpret_cast <char *> (strBuf.Ptr()));
|
||||||
#else
|
#else
|
||||||
static const char LanguageXml[] =
|
static byte LanguageXml[] =
|
||||||
{
|
{
|
||||||
# include "Common/Language.xml.h"
|
# include "Common/Language.xml.h"
|
||||||
, 0
|
, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
return string (LanguageXml);
|
return string ((const char*) LanguageXml);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,13 +68,13 @@ namespace VeraCrypt
|
|||||||
strBuf.CopyFrom (res);
|
strBuf.CopyFrom (res);
|
||||||
return string (reinterpret_cast <char *> (strBuf.Ptr()));
|
return string (reinterpret_cast <char *> (strBuf.Ptr()));
|
||||||
#else
|
#else
|
||||||
static const char License[] =
|
static byte License[] =
|
||||||
{
|
{
|
||||||
# include "License.txt.h"
|
# include "License.txt.h"
|
||||||
, 0
|
, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
return string (License);
|
return string ((const char*) License);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user