From 8b762e7e3419c0f8b89824be9ffb5174aa14f4da Mon Sep 17 00:00:00 2001 From: mental Date: Fri, 24 Feb 2006 20:51:22 +0000 Subject: [PATCH] amend workaround for #1432690 --- src/ui/dialog/dialog.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index 238c6d9f7..7cb360a43 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -15,7 +15,6 @@ # include #endif -#include #include #include @@ -118,9 +117,7 @@ Dialog::read_geometry() void hideCallback(GtkObject *object, gpointer dlgPtr) { - Dialog* example; - if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) - return; + g_return_if_fail( dlgPtr != NULL ); Dialog *dlg = (Dialog *)dlgPtr; dlg->onHideF12(); @@ -128,9 +125,7 @@ void hideCallback(GtkObject *object, gpointer dlgPtr) void unhideCallback(GtkObject *object, gpointer dlgPtr) { - Dialog* example; - if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example)) - return; + g_return_if_fail( dlgPtr != NULL ); Dialog *dlg = (Dialog *)dlgPtr; dlg->onShowF12(); -- 2.30.2