]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/poem/wxpoem.cpp
fixed sending 2 events (normal and bogus cancel one) when ending to edit a tree ctrl...
[wxWidgets.git] / demos / poem / wxpoem.cpp
index 9bdca453e93ca271a0c29136ff490535ddf8809d..e426da666e1b06b1c13978faff9af058e6ab4186 100644 (file)
@@ -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
   {