]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless MSVC warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jul 2009 17:09:37 +0000 (17:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jul 2009 17:09:37 +0000 (17:09 +0000)
It complained about converting pointer to bool implicitly in wxAppConsoleBase::IsScheduledForDestruction().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index 4851b5ac8041109aa62f1e34b4c322ac67d03e80..db26530d662886db24b7458f2a2f00664ffc0c1c 100644 (file)
@@ -505,7 +505,7 @@ void wxAppConsoleBase::DeletePendingEvents()
 
 bool wxAppConsoleBase::IsScheduledForDestruction(wxObject *object) const
 {
 
 bool wxAppConsoleBase::IsScheduledForDestruction(wxObject *object) const
 {
-    return wxPendingDelete.Member(object);
+    return wxPendingDelete.Member(object) != NULL;
 }
 
 void wxAppConsoleBase::ScheduleForDestruction(wxObject *object)
 }
 
 void wxAppConsoleBase::ScheduleForDestruction(wxObject *object)