summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/deb
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/deb')
-rw-r--r--kfile-plugins/deb/kfile_deb.cpp8
-rw-r--r--kfile-plugins/deb/kfile_deb.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/kfile-plugins/deb/kfile_deb.cpp b/kfile-plugins/deb/kfile_deb.cpp
index 3839764..fdd16f2 100644
--- a/kfile-plugins/deb/kfile_deb.cpp
+++ b/kfile-plugins/deb/kfile_deb.cpp
@@ -43,10 +43,10 @@ typedef KGenericFactory<KDebPlugin> DebFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_deb, DebFactory( "kfile_deb" ))
-KDebPlugin::KDebPlugin(TQObject *parent, const char *name,
+KDebPlugin::KDebPlugin(TQObject *tqparent, const char *name,
const TQStringList &args)
- : KFilePlugin(parent, name, args)
+ : KFilePlugin(tqparent, name, args)
{
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-deb" );
KFileMimeTypeInfo::GroupInfo* group = 0L;
@@ -64,7 +64,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
KAr debfile (info.path());
if ( !debfile.open( IO_ReadOnly ) ) {
- kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl;
return false;
}
@@ -104,7 +104,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
char linebuf[100];
controldev.readLine(linebuf, sizeof( linebuf ));
TQString line(linebuf);
- int fieldstart = line.find(TQRegExp(":"), 0) + 2;
+ int fieldstart = line.tqfind(TQRegExp(":"), 0) + 2;
if (fieldstart == 1) break;
TQString fieldname = line.mid(0, fieldstart - 2);
TQString fielddata = line.mid(fieldstart, line.length() - fieldstart - 1);
diff --git a/kfile-plugins/deb/kfile_deb.h b/kfile-plugins/deb/kfile_deb.h
index 8b374b9..14b80a9 100644
--- a/kfile-plugins/deb/kfile_deb.h
+++ b/kfile-plugins/deb/kfile_deb.h
@@ -27,9 +27,10 @@ class TQStringList;
class KDebPlugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDebPlugin( TQObject *parent, const char *name, const TQStringList& args );
+ KDebPlugin( TQObject *tqparent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);