From 73c08b592db45af554b9f21029bc549d70f683ab Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:46:05 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kioslave/man/kio_man.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kioslave/man/kio_man.cpp') diff --git a/kioslave/man/kio_man.cpp b/kioslave/man/kio_man.cpp index 7cec22c27..c8227e908 100644 --- a/kioslave/man/kio_man.cpp +++ b/kioslave/man/kio_man.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include #include @@ -82,7 +82,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString §ion) section = TQString::null; TQString url = _url; - if (url.tqat(0) == '/') { + if (url.at(0) == '/') { if (KStandardDirs::exists(url)) { title = url; return true; @@ -93,7 +93,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString §ion) } } - while (url.tqat(0) == '/') + while (url.at(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.tqat(0) == '/') { + if (title.at(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.tqat(section.length() - 1).isLetter()) { + while (section.at(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.tqat() >= 2048) + if (!insert || m_outputBuffer.at() >= 2048) { m_outputBuffer.close(); data(m_outputBuffer.buffer()); - m_outputBuffer.tqsetBufferFromCopy(TQByteArray()); + m_outputBuffer.setBuffer(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.tqsetBufferFromCopy(TQByteArray()); + m_outputBuffer.setBuffer(TQByteArray()); // tell we are done data(TQByteArray()); } -- cgit v1.2.1