summaryrefslogtreecommitdiffstats
path: root/kio/kssl/ksslx509map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kio/kssl/ksslx509map.cc')
-rw-r--r--kio/kssl/ksslx509map.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/kio/kssl/ksslx509map.cc b/kio/kssl/ksslx509map.cc
index 1db98cc2d..7896fdfcf 100644
--- a/kio/kssl/ksslx509map.cc
+++ b/kio/kssl/ksslx509map.cc
@@ -19,10 +19,10 @@
*/
#include "ksslx509map.h"
-#include <qstringlist.h>
-#include <qregexp.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
-KSSLX509Map::KSSLX509Map(const QString& name) {
+KSSLX509Map::KSSLX509Map(const TQString& name) {
parse(name);
}
@@ -32,21 +32,21 @@ KSSLX509Map::~KSSLX509Map() {
}
-void KSSLX509Map::setValue(const QString& key, const QString& value) {
+void KSSLX509Map::setValue(const TQString& key, const TQString& value) {
m_pairs.replace(key, value);
}
-QString KSSLX509Map::getValue(const QString& key) const {
+TQString KSSLX509Map::getValue(const TQString& key) const {
if (!m_pairs.contains(key)) {
- return QString::null;
+ return TQString::null;
}
return m_pairs[key];
}
-static QStringList tokenizeBy(const QString& str, const QRegExp& tok, bool keepEmpties = false) {
-QStringList tokens;
+static TQStringList tokenizeBy(const TQString& str, const TQRegExp& tok, bool keepEmpties = false) {
+TQStringList tokens;
unsigned int head, tail;
const char *chstr = str.ascii();
unsigned int length = str.length();
@@ -61,7 +61,7 @@ unsigned int length = str.length();
}
for(head = 0, tail = 0; tail < length-1; head = tail+1) {
- QString thisline;
+ TQString thisline;
tail = str.find(tok, head);
@@ -78,15 +78,15 @@ unsigned int length = str.length();
}
-void KSSLX509Map::parse(const QString& name) {
-QStringList vl = tokenizeBy(name, QRegExp("/[A-Za-z]+="), false);
+void KSSLX509Map::parse(const TQString& name) {
+TQStringList vl = tokenizeBy(name, TQRegExp("/[A-Za-z]+="), false);
m_pairs.clear();
- for (QStringList::Iterator j = vl.begin(); j != vl.end(); ++j) {
- QStringList apair = tokenizeBy(*j, QRegExp("="), false);
+ for (TQStringList::Iterator j = vl.begin(); j != vl.end(); ++j) {
+ TQStringList apair = tokenizeBy(*j, TQRegExp("="), false);
if (m_pairs.contains(apair[0])) {
- QString oldValue = m_pairs[apair[0]];
+ TQString oldValue = m_pairs[apair[0]];
oldValue += "\n";
oldValue += apair[1];
m_pairs.replace(apair[0], oldValue);
@@ -97,7 +97,7 @@ QStringList vl = tokenizeBy(name, QRegExp("/[A-Za-z]+="), false);
}
-void KSSLX509Map::reset(const QString& name) {
+void KSSLX509Map::reset(const TQString& name) {
parse(name);
}