]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix compilation with GCC (at least 2.95.4).
authorMattia Barbon <mbarbon@cpan.org>
Mon, 10 Feb 2003 21:18:32 +0000 (21:18 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Mon, 10 Feb 2003 21:18:32 +0000 (21:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/internat/internat.cpp

index c273b2c78f24e55a0fa1bfa115f71a6618df5327..bc13c68259800b1f69bc5187ad7973dea88111d0 100644 (file)
@@ -109,7 +109,8 @@ bool MyApp::OnInit()
     if ( argc == 2 )
     {
         // the parameter must be the lang index
-        wxString(argv[1]).ToLong(&lng);
+        wxString tmp(argv[1]);
+        tmp.ToLong(&lng);
     }
 
     static const wxLanguage langIds[] =