Remove explicit casts to (const char *), and replace it with .c_str();
use wxConstCast instead of explicit casts to char*. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -168,7 +168,8 @@ bool wxDialog::DoCreate( wxWindow* parent, wxWindowID id,
|
||||
XtSetArg (args[0], XmNdefaultPosition, False);
|
||||
XtSetArg (args[1], XmNautoUnmanage, False);
|
||||
Widget dialogShell =
|
||||
XmCreateBulletinBoardDialog( parentWidget, (char*)name.c_str(),
|
||||
XmCreateBulletinBoardDialog( parentWidget,
|
||||
wxConstCast(name.c_str(), char),
|
||||
args, 2);
|
||||
m_mainWidget = (WXWidget) dialogShell;
|
||||
|
||||
|
Reference in New Issue
Block a user