From 937b2991d8e78166eea904c80ad04d34607017a4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/torrent/kfile_torrent.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kfile-plugins/torrent/kfile_torrent.cpp') diff --git a/kfile-plugins/torrent/kfile_torrent.cpp b/kfile-plugins/torrent/kfile_torrent.cpp index a5de60f0..a4cff355 100644 --- a/kfile-plugins/torrent/kfile_torrent.cpp +++ b/kfile-plugins/torrent/kfile_torrent.cpp @@ -166,7 +166,7 @@ bool KTorrentPlugin::readInfo (KFileMetaInfo &info, unsigned int) // If a torrent has a key, but it is of the wrong type, then it isn't a valid // torrent, and so we should just die. - if (m_dict->tqcontains("announce")) + if (m_dict->contains("announce")) { BString *str = m_dict->findStr ("announce"); if (!str) @@ -174,7 +174,7 @@ bool KTorrentPlugin::readInfo (KFileMetaInfo &info, unsigned int) appendItem (group, "announce", TQString(str->get_string())); } - if (m_dict->tqcontains("creation date")) + if (m_dict->contains("creation date")) { BInt *the_data = m_dict->findInt ("creation date"); TQDateTime my_date; @@ -198,7 +198,7 @@ bool KTorrentPlugin::readInfo (KFileMetaInfo &info, unsigned int) if (!info_dict) return false; - if (!info_dict->tqcontains("length")) + if (!info_dict->contains("length")) { /* Has more than one file. The list of files is contained in a * list called, appropriately enough, 'files' @@ -223,7 +223,7 @@ bool KTorrentPlugin::readInfo (KFileMetaInfo &info, unsigned int) appendItem (group, "NumFiles", num_files); appendItem (group, "length", length); - if (info_dict->tqcontains("name")) + if (info_dict->contains("name")) { BString *str = info_dict->findStr("name"); if (!str) @@ -244,7 +244,7 @@ bool KTorrentPlugin::readInfo (KFileMetaInfo &info, unsigned int) appendItem (group, "piece length", piece_length->get_value()); - if (m_dict->tqcontains("comment")) + if (m_dict->contains("comment")) { BString *comment = m_dict->findStr("comment"); if (!comment) @@ -383,7 +383,7 @@ bool KTorrentPlugin::writeInfo(const KFileMetaInfo &info) const TQString the_name = info[*it][key].value().toString(); // Remove trailing slashes - the_name.tqreplace (TQRegExp("/*$"), ""); + the_name.replace (TQRegExp("/*$"), ""); name_str->setValue (the_name); } -- cgit v1.2.1