summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/utils.h')
-rw-r--r--kexi/formeditor/utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kexi/formeditor/utils.h b/kexi/formeditor/utils.h
index d42a891f..1f325265 100644
--- a/kexi/formeditor/utils.h
+++ b/kexi/formeditor/utils.h
@@ -41,10 +41,10 @@ type* findParent(TQObject* o, const char* className, TQObject* &prevPrev)
{
if (!o || !className || className[0]=='\0')
return 0;
- TQObject *prev = TQT_TQOBJECT(o);
- while ( ((o=TQT_TQOBJECT(o)->parent())) && !TQT_TQOBJECT(o)->inherits(className) ) {
+ TQObject *prev = o;
+ while ( ((o=o->parent())) && !o->inherits(className) ) {
prevPrev = prev;
- prev = TQT_TQOBJECT(o);
+ prev = o;
}
return static_cast<type*>(o);
}