diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 3155d6df..48b796bc 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -74,18 +74,22 @@ struct Impl_Widget { | |||
74 | iDeclareObjectConstruction(Widget) | 74 | iDeclareObjectConstruction(Widget) |
75 | 75 | ||
76 | iLocalDef iWidget *as_Widget(iAnyObject *d) { | 76 | iLocalDef iWidget *as_Widget(iAnyObject *d) { |
77 | #if !defined (NDEBUG) | ||
77 | if (d) { | 78 | if (d) { |
78 | iAssertIsObject(d); | 79 | iAssertIsObject(d); |
79 | iAssert(isInstance_Object(d, &Class_Widget)); | 80 | iAssert(isInstance_Object(d, &Class_Widget)); |
80 | } | 81 | } |
82 | #endif | ||
81 | return (iWidget *) d; | 83 | return (iWidget *) d; |
82 | } | 84 | } |
83 | 85 | ||
84 | iLocalDef const iWidget *constAs_Widget(const iAnyObject *d) { | 86 | iLocalDef const iWidget *constAs_Widget(const iAnyObject *d) { |
87 | #if !defined (NDEBUG) | ||
85 | if (d) { | 88 | if (d) { |
86 | iAssertIsObject(d); | 89 | iAssertIsObject(d); |
87 | iAssert(isInstance_Object(d, &Class_Widget)); | 90 | iAssert(isInstance_Object(d, &Class_Widget)); |
88 | } | 91 | } |
92 | #endif | ||
89 | return (const iWidget *) d; | 93 | return (const iWidget *) d; |
90 | } | 94 | } |
91 | 95 | ||