]> git.saurik.com Git - wxWidgets.git/commitdiff
avoiding warning for unused var in cocoa build
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 17 Jan 2009 08:45:05 +0000 (08:45 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 17 Jan 2009 08:45:05 +0000 (08:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/app.cpp

index e1df3f151a3e47896b13450f23b9611b9f289c06..944b22fd16dfcdc77fcbfd343b7a12757f21f718 100644 (file)
@@ -1439,11 +1439,11 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers
         return false ;
     wxKeyEvent event(wxEVT_CHAR) ;
     MacCreateKeyEvent( event, focus , keymessage , modifiers , when , wherex , wherey , uniChar ) ;
-    long keyval = event.m_keyCode ;
 
     bool handled = false ;
 
 #if wxOSX_USE_CARBON
+    long keyval = event.m_keyCode ;
     wxNonOwnedWindow *tlw = focus->MacGetTopLevelWindow() ;
 
     if (tlw)