summaryrefslogtreecommitdiffstats
path: root/kioslave/man
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/man')
-rw-r--r--kioslave/man/kio_man.cpp16
-rw-r--r--kioslave/man/man2html.cpp4
2 files changed, 10 insertions, 10 deletions
diff --git a/kioslave/man/kio_man.cpp b/kioslave/man/kio_man.cpp
index c8227e908..7cec22c27 100644
--- a/kioslave/man/kio_man.cpp
+++ b/kioslave/man/kio_man.cpp
@@ -24,7 +24,7 @@
#include <tqdir.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqdatastream.h>
#include <tqcstring.h>
#include <tqptrlist.h>
@@ -82,7 +82,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString &section)
section = TQString::null;
TQString url = _url;
- if (url.at(0) == '/') {
+ if (url.tqat(0) == '/') {
if (KStandardDirs::exists(url)) {
title = url;
return true;
@@ -93,7 +93,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString &section)
}
}
- while (url.at(0) == '/')
+ while (url.tqat(0) == '/')
url.remove(0,1);
title = url;
@@ -259,7 +259,7 @@ TQStringList MANProtocol::findPages(const TQString &_section,
TQStringList list;
// kdDebug() << "findPages '" << section << "' '" << title << "'\n";
- if (title.at(0) == '/') {
+ if (title.tqat(0) == '/') {
list.append(title);
return list;
}
@@ -279,7 +279,7 @@ TQStringList MANProtocol::findPages(const TQString &_section,
// Section given as argument
//
sect_list += section;
- while (section.at(section.length() - 1).isLetter()) {
+ while (section.tqat(section.length() - 1).isLetter()) {
section.truncate(section.length() - 1);
sect_list += section;
}
@@ -400,11 +400,11 @@ void MANProtocol::output(const char *insert)
{
m_outputBuffer.writeBlock(insert,strlen(insert));
}
- if (!insert || m_outputBuffer.at() >= 2048)
+ if (!insert || m_outputBuffer.tqat() >= 2048)
{
m_outputBuffer.close();
data(m_outputBuffer.buffer());
- m_outputBuffer.setBuffer(TQByteArray());
+ m_outputBuffer.tqsetBufferFromCopy(TQByteArray());
m_outputBuffer.open(IO_WriteOnly);
}
}
@@ -505,7 +505,7 @@ void MANProtocol::get(const KURL& url )
m_outputBuffer.close();
data(m_outputBuffer.buffer());
- m_outputBuffer.setBuffer(TQByteArray());
+ m_outputBuffer.tqsetBufferFromCopy(TQByteArray());
// tell we are done
data(TQByteArray());
}
diff --git a/kioslave/man/man2html.cpp b/kioslave/man/man2html.cpp
index c7c41bc42..e31fe0fe6 100644
--- a/kioslave/man/man2html.cpp
+++ b/kioslave/man/man2html.cpp
@@ -144,7 +144,7 @@
# define kdDebug(x) cerr
# define kdWarning(x) cerr << "WARNING "
#else
-# include <textcodec.h>
+# include <tqtextcodec.h>
# include <kdebug.h>
# include <tdeversion.h>
#endif
@@ -1905,7 +1905,7 @@ public:
return (index >= 0) && (index < (int)items.count());
}
TABLEITEM &at(int index) {
- return *items.at(index);
+ return *items.tqat(index);
}
TABLEROW *copyLayout() const;