summaryrefslogtreecommitdiffstats
path: root/tdeio/tdeio/kfilterdev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tdeio/kfilterdev.cpp')
-rw-r--r--tdeio/tdeio/kfilterdev.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeio/tdeio/kfilterdev.cpp b/tdeio/tdeio/kfilterdev.cpp
index bb9e90af1..4df335090 100644
--- a/tdeio/tdeio/kfilterdev.cpp
+++ b/tdeio/tdeio/kfilterdev.cpp
@@ -70,9 +70,9 @@ TQIODevice* KFilterDev::createFilterDevice(KFilterBase* base, TQFile* file)
//we don't need a filter
if (base==0)
- return TQT_TQIODEVICE(new TQFile(file->name())); // A bit strange IMHO. We ask for a TQFile but we create another one !?! (DF)
+ return new TQFile(file->name()); // A bit strange IMHO. We ask for a TQFile but we create another one !?! (DF)
- base->setDevice(TQT_TQIODEVICE(file));
+ base->setDevice(file);
return new KFilterDev(base);
}
#endif
@@ -86,11 +86,11 @@ TQIODevice * KFilterDev::deviceForFile( const TQString & fileName, const TQStrin
: KFilterBase::findFilterByMimeType( mimetype );
if ( base )
{
- base->setDevice(TQT_TQIODEVICE(f), true);
+ base->setDevice(f, true);
return new KFilterDev(base, true);
}
if(!forceFilter)
- return TQT_TQIODEVICE(f);
+ return f;
else
{
delete f;