]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
define CreateEventLoop() even if wxUSE_CONSOLE_EVENTLOOP == 0 (because it's declared...
[wxWidgets.git] / src / msw / app.cpp
index 843b4d3c887337e02fa36d81e5a2a76214bbe080..682a3b3b298dd651a4ecd6c7d9b37eb9c43bbd6b 100644 (file)
@@ -266,11 +266,15 @@ wxPortId wxGUIAppTraits::GetToolkitVersion(int *majVer, int *minVer) const
 #endif
 }
 
+#if wxUSE_TIMER
+
 wxTimerImpl *wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
 {
     return new wxMSWTimerImpl(timer);
 }
 
+#endif // wxUSE_TIMER
+
 wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
 {
     return new wxEventLoop;
@@ -548,10 +552,8 @@ wxApp::~wxApp()
 // wxApp idle handling
 // ----------------------------------------------------------------------------
 
-void wxApp::OnIdle(wxIdleEvent& event)
+void wxApp::OnIdle(wxIdleEvent& WXUNUSED(event))
 {
-    wxAppBase::OnIdle(event);
-
 #if wxUSE_DC_CACHEING
     // automated DC cache management: clear the cached DCs and bitmap
     // if it's likely that the app has finished with them, that is, we