]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/display_impl.h
test whether pointer is non-NULL before using it, not after, in wxAnimation::Load...
[wxWidgets.git] / include / wx / display_impl.h
index 07eae9a753d02e7cf0dc453db78659089e186eca..4fedb1ffcbdf168162539838d3c712b15a52f651 100644 (file)
@@ -37,7 +37,7 @@ public:
     // return the display for the given window or wxNOT_FOUND
     //
     // the window pointer must not be NULL (i.e. caller should check it)
-    virtual int GetFromWindow(wxWindow *window);
+    virtual int GetFromWindow(const wxWindow *window);
 };
 
 // ----------------------------------------------------------------------------