X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1863484b0889b14191e43b4de9b31fed847cc29d..fa699cbaaf217af186cd04dd10d6ec67c8667136:/samples/uiaction/uiaction.cpp diff --git a/samples/uiaction/uiaction.cpp b/samples/uiaction/uiaction.cpp index 6cf4d99f6d..6fd518e299 100644 --- a/samples/uiaction/uiaction.cpp +++ b/samples/uiaction/uiaction.cpp @@ -40,7 +40,7 @@ // the application icon (under Windows and OS/2 it is in resources and even // though we could still include the XPM here it would be unused) -#if !defined(__WXMSW__) && !defined(__WXPM__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -213,7 +213,7 @@ void MyFrame::OnSimulateText(wxCommandEvent& WXUNUSED(event)) wxUIActionSimulator sim; m_text->SetFocus(); - sim.Text(s_text); + sim.Text(s_text.c_str()); } void MyFrame::OnButtonPressed(wxCommandEvent& WXUNUSED(event))