From 9d3550f413f9110039bcb9fbf3882aaec5705f85 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 21 Jan 2014 19:32:00 +0000 Subject: [PATCH] Add a virtual dtor to wxEventLoopSourcesManagerBase to avoid g++ warnings. This virtual dtor is not really needed as manager objects are static singletons and are not destroyed via their pointer, but add a virtual dtor just to avoid g++ warnings about its absence. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/private/eventloopsourcesmanager.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/wx/private/eventloopsourcesmanager.h b/include/wx/private/eventloopsourcesmanager.h index 54ce5b0fce..430a2f7f20 100644 --- a/include/wx/private/eventloopsourcesmanager.h +++ b/include/wx/private/eventloopsourcesmanager.h @@ -13,13 +13,17 @@ // For pulling in the value of wxUSE_EVENTLOOP_SOURCE #include "wx/evtloop.h" +#if wxUSE_EVENTLOOP_SOURCE + class WXDLLIMPEXP_BASE wxEventLoopSourcesManagerBase { public: -#if wxUSE_EVENTLOOP_SOURCE virtual wxEventLoopSource* AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags) = 0; -#endif + + virtual ~wxEventLoopSourcesManagerBase() { } }; +#endif // wxUSE_EVENTLOOP_SOURCE + #endif // _WX_PRIVATE_EVENTLOOPSOURCESMANAGER_H_