summaryrefslogtreecommitdiffstats
path: root/tdecore/kgenericfactory.tcc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:47:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-18 16:38:42 +0900
commit48b07a0ff120e8b4479bcac912d8a8f043e22ae4 (patch)
treea3d42bf916706ea512c6887baea5589448afd760 /tdecore/kgenericfactory.tcc
parent23278d259378e17087bf9aeaa5e45974dfb74bce (diff)
downloadtdelibs-48b07a0ff120e8b4479bcac912d8a8f043e22ae4.tar.gz
tdelibs-48b07a0ff120e8b4479bcac912d8a8f043e22ae4.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/kgenericfactory.tcc')
-rw-r--r--tdecore/kgenericfactory.tcc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/kgenericfactory.tcc b/tdecore/kgenericfactory.tcc
index e7ba1c730..dda6ec487 100644
--- a/tdecore/kgenericfactory.tcc
+++ b/tdecore/kgenericfactory.tcc
@@ -150,7 +150,7 @@ namespace KDEPrivate
const TQStringList &args, Type2Type<TQWidget> )
{
- WidgetParentType *p = dynamic_cast<WidgetParentType *>( static_cast<TQT_BASE_OBJECT_NAME*>(parent) );
+ WidgetParentType *p = dynamic_cast<WidgetParentType *>( parent );
if ( parent && !p )
return 0;
return new Product( p, name, args );
@@ -160,7 +160,7 @@ namespace KDEPrivate
TQObject *parent, const char *name,
const TQStringList &args, Type2Type<TQObject> )
{
- ParentType *p = dynamic_cast<ParentType *>( static_cast<TQT_BASE_OBJECT_NAME*>(parent) );
+ ParentType *p = dynamic_cast<ParentType *>( parent );
if ( parent && !p )
return 0;
return new Product( p, name, args );
@@ -179,9 +179,9 @@ namespace KDEPrivate
const char *className,
const TQStringList &args )
{
- return static_cast<TQObject*>(static_cast<QObject*>(ConcreteFactory<Product, ParentType>::create( parentWidget, widgetName,
- parent, name, className,
- args )));
+ return static_cast<TQObject*>(ConcreteFactory<Product, ParentType>::create( parentWidget, widgetName,
+ parent, name, className,
+ args ));
}
};