From: Mattia Barbon Date: Mon, 1 Mar 2004 21:48:05 +0000 (+0000) Subject: Remove deprecated copystring() usage. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/000a8253716e6810600cfcf4401764628374a6da Remove deprecated copystring() usage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index 9bdca453e9..e426da666e 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -36,6 +36,7 @@ #include "corner2.xpm" #include "corner3.xpm" #include "corner4.xpm" +#include "wxpoem.xpm" #endif #define buf_size 10000 @@ -488,7 +489,7 @@ void MainWindow::Search(bool ask) { s.MakeLower(); if (search_string) delete[] search_string; - search_string = copystring(s); + search_string = wxStrcpy(new wxChar[wxStrlen(s.c_str()) + 1], s.c_str()); search_ok = true; } else search_ok = false; } @@ -553,8 +554,8 @@ bool MyApp::OnInit() if (argc > 1) { - index_filename = copystring(argv[1]); - data_filename = copystring(argv[1]); + index_filename = wxStrcpy(new wxChar[wxStrlen(argv[1]) + 1], argv[1]); + data_filename = wxStrcpy(new wxChar[wxStrlen(argv[1]) + 1], argv[1]); } else {