summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/cert
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/cert')
-rw-r--r--kfile-plugins/cert/kfile_cert.cpp8
-rw-r--r--kfile-plugins/cert/kfile_cert.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/kfile-plugins/cert/kfile_cert.cpp b/kfile-plugins/cert/kfile_cert.cpp
index 8a711ba..4175240 100644
--- a/kfile-plugins/cert/kfile_cert.cpp
+++ b/kfile-plugins/cert/kfile_cert.cpp
@@ -39,8 +39,8 @@ typedef KGenericFactory<CertPlugin> CertFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_cert, CertFactory("kfile-cert"))
-CertPlugin::CertPlugin(TQObject *parent, const char *name, const TQStringList &args)
- : KFilePlugin(parent, name, args)
+CertPlugin::CertPlugin(TQObject *tqparent, const char *name, const TQStringList &args)
+ : KFilePlugin(tqparent, name, args)
{
//add the mimetype here - example:
//KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" );
@@ -110,10 +110,10 @@ static KSSLCertificate *readCertFromFile(const TQString &path)
KOSSL::self()->ERR_clear_error();
const char *begin_line = "-----BEGIN CERTIFICATE-----\n";
const char *end_line = "\n-----END CERTIFICATE-----";
- int begin_pos = file_string.find(begin_line);
+ int begin_pos = file_string.tqfind(begin_line);
if (begin_pos >= 0) {
begin_pos += strlen(begin_line);
- int end_pos = file_string.find(end_line, begin_pos);
+ int end_pos = file_string.tqfind(end_line, begin_pos);
if (end_pos >= 0) {
// read the data between begin and end lines
TQCString body = file_string.mid(begin_pos, end_pos - begin_pos);
diff --git a/kfile-plugins/cert/kfile_cert.h b/kfile-plugins/cert/kfile_cert.h
index 30607eb..2991674 100644
--- a/kfile-plugins/cert/kfile_cert.h
+++ b/kfile-plugins/cert/kfile_cert.h
@@ -31,10 +31,11 @@ class TQString;
class CertPlugin: public KFilePlugin {
Q_OBJECT
+ TQ_OBJECT
private:
void appendDNItems(KFileMetaInfoGroup &group, const TQString &DN);
public:
- CertPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ CertPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
};