mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 12:10:31 -04:00
24 lines
858 B
C++
24 lines
858 B
C++
Build fails on FreeBSD due to a casting error from the wxString Class when using
|
|
wx30-gtk2-3.0.4_1. This patch adds a cast (static_cast<const wchar_t*>) that
|
|
resolves the error.
|
|
|
|
--- client/ConfigPath.cpp.orig 2018-08-12 19:17:13 UTC
|
|
+++ client/ConfigPath.cpp
|
|
@@ -60,7 +60,7 @@ ConfigPath::ConfigPath(wxWindow* parent)
|
|
listbox->Append(dirs[i].path);
|
|
if(dirs[i].name.IsEmpty())
|
|
{
|
|
- dirs[i].name=getDefaultDirname(dirs[i].path.wc_str());
|
|
+ dirs[i].name=getDefaultDirname(static_cast<const wchar_t*>(dirs[i].path.wc_str()));
|
|
}
|
|
}
|
|
|
|
@@ -93,7 +93,7 @@ void ConfigPath::OnClickNew(wxCommandEve
|
|
listbox->Append(ed.GetPath() );
|
|
SBackupDir ad;
|
|
ad.path=ed.GetPath();
|
|
- ad.name=getDefaultDirname(ad.path.wc_str());
|
|
+ ad.name=getDefaultDirname(static_cast<const wchar_t*>(ad.path.wc_str()));
|
|
ad.group=0;
|
|
ad.id=0;
|
|
dirs.push_back(ad);
|