]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
moving things to private headers
[wxWidgets.git] / samples / controls / controls.cpp
index 6dd4a8fd87dbccd7b8701f883e8ac2647c3ebc9e..2ab570ed62eef23d3ab9317718ce054b94f6dc87 100644 (file)
@@ -1314,8 +1314,9 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event )
 
 static const wxChar *GetDataString(wxClientData *data)
 {
-    return data ? wx_static_cast(wxStringClientData *, data)->GetData().c_str()
-                : _T("none");
+    return (
+      data ? wx_static_cast(wxStringClientData *, data)->GetData() : wxString("none")
+    ).c_str();
 }
 
 void MyPanel::OnChoice( wxCommandEvent &event )