diff options
Diffstat (limited to 'lib/pluginfactory.h')
-rw-r--r-- | lib/pluginfactory.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/pluginfactory.h b/lib/pluginfactory.h index 4fa2d6f..dbbe2ec 100644 --- a/lib/pluginfactory.h +++ b/lib/pluginfactory.h @@ -45,26 +45,26 @@ class KPilotLink; template <class Widget, class Action> class ConduitFactory : public KLibFactory { public: - ConduitFactory(TQObject *tqparent = 0, const char *name = 0) : - KLibFactory(tqparent,name) + ConduitFactory(TQObject *parent = 0, const char *name = 0) : + KLibFactory(parent,name) { fInstance = new KInstance(name); } ; virtual ~ConduitFactory() { delete fInstance; } ; protected: virtual TQObject *createObject( - TQObject* tqparent = 0, + TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ) { if (qstrcmp(classname,"ConduitConfigBase")==0) { - TQWidget *w = dynamic_cast<TQWidget *>(tqparent); + TQWidget *w = dynamic_cast<TQWidget *>(parent); if (w) return new Widget(w,name); else { - WARNINGKPILOT << "Could not cast tqparent to widget." << endl; + WARNINGKPILOT << "Could not cast parent to widget." << endl; return 0L; } } @@ -72,11 +72,11 @@ protected: if (qstrcmp(classname,"SyncAction")==0) { KPilotLink *d = 0L; - if (tqparent) d = dynamic_cast<KPilotLink *>(tqparent); + if (parent) d = dynamic_cast<KPilotLink *>(parent); - if (d || !tqparent) + if (d || !parent) { - if (!tqparent) + if (!parent) { kdDebug() << k_funcinfo << ": Using NULL device." << endl; } @@ -84,7 +84,7 @@ protected: } else { - WARNINGKPILOT << "Could not cast tqparent to KPilotLink" << endl; + WARNINGKPILOT << "Could not cast parent to KPilotLink" << endl; return 0L; } } |