1 --- Main/Resources.cpp 2016-05-16 16:47:35.846462041 +0200
2 +++ Main/Resources.cpp 2016-05-16 17:12:21.838202520 +0200
5 return string (reinterpret_cast <char *> (strBuf.Ptr()));
7 - static const char LanguageXml[] =
8 + static byte LanguageXml[] =
10 # include "Common/Language.xml.h"
14 - return string (LanguageXml);
15 + return string ((const char*) LanguageXml);
20 strBuf.CopyFrom (res);
21 return string (reinterpret_cast <char *> (strBuf.Ptr()));
23 - static const char License[] =
24 + static byte License[] =
26 # include "License.txt.h"
30 - return string (License);
31 + return string ((const char*) License);
35 --- Main/Forms/PreferencesDialog.cpp 2016-05-16 17:14:47.704707908 +0200
36 +++ Main/Forms/PreferencesDialog.cpp 2016-05-16 17:15:56.927964437 +0200
38 libExtension = wxDynamicLibrary::CanonicalizeName (L"x");
41 - extensions.push_back (make_pair (L"dylib", LangString["DLL_FILES"]));
42 + extensions.push_back (make_pair (L"dylib", static_cast<const wchar_t*>(LangString["DLL_FILES"].wc_str())));
44 if (!libExtension.empty())
46 - extensions.push_back (make_pair (libExtension.Mid (libExtension.find (L'.') + 1), LangString["DLL_FILES"]));
47 + extensions.push_back (make_pair (static_cast<const wchar_t*>(libExtension.Mid (libExtension.find (L'.') + 1).wc_str()), static_cast<const wchar_t*>(LangString["DLL_FILES"].wc_str())));
48 extensions.push_back (make_pair (L"*", L""));
51 --- Main/GraphicUserInterface.cpp 2016-05-16 17:16:38.724591342 +0200
52 +++ Main/GraphicUserInterface.cpp 2016-05-16 17:17:09.854562653 +0200
54 FilePath GraphicUserInterface::SelectVolumeFile (wxWindow *parent, bool saveMode, const DirectoryPath &directory) const
56 list < pair <wstring, wstring> > extensions;
57 - extensions.push_back (make_pair (L"tc", LangString["TC_VOLUMES"]));
58 + extensions.push_back (make_pair (L"tc", static_cast<const wchar_t*>(LangString["TC_VOLUMES"].wc_str())));
60 FilePathList selFiles = Gui->SelectFiles (parent, LangString[saveMode ? "OPEN_NEW_VOLUME" : "OPEN_VOL_TITLE"], saveMode, false, extensions, directory);