summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/torrent/kfile_torrent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/torrent/kfile_torrent.cpp')
-rw-r--r--kfile-plugins/torrent/kfile_torrent.cpp12
1 files changed, 6 insertions, 6 deletions
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);
}