summaryrefslogtreecommitdiffstats
path: root/src/kmplayerpartbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerpartbase.cpp')
-rw-r--r--src/kmplayerpartbase.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kmplayerpartbase.cpp b/src/kmplayerpartbase.cpp
index dedec80..f3cfa75 100644
--- a/src/kmplayerpartbase.cpp
+++ b/src/kmplayerpartbase.cpp
@@ -287,7 +287,7 @@ bool PartBase::setProcess (Mrl *mrl) {
m_config->setGroup (mrl->mimetype);
p = m_config->readEntry ("player", "" );
remember_backend = !(!p.isEmpty () &&
- m_players.tqcontains (p) &&
+ m_players.contains (p) &&
m_players [p]->supports (m_source->name ()));
}
}
@@ -300,7 +300,7 @@ bool PartBase::setProcess (Mrl *mrl) {
p = m_config->readEntry (m_source->name (), "");
}
if (p.isEmpty () ||
- !m_players.tqcontains (p) ||
+ !m_players.contains (p) ||
!m_players [p]->supports (m_source->name ())) {
// finally find first supported player
p.truncate (0);
@@ -486,7 +486,7 @@ bool PartBase::openURL (const KURL & url) {
kdDebug () << "PartBase::openURL " << url.url() << url.isValid () << endl;
if (!m_view) return false;
stop ();
- Source * src = (url.isEmpty () ? m_sources ["urlsource"] : (!url.protocol ().compare ("kmplayer") && m_sources.tqcontains (url.host ()) ? m_sources [url.host ()] : m_sources ["urlsource"]));
+ Source * src = (url.isEmpty () ? m_sources ["urlsource"] : (!url.protocol ().compare ("kmplayer") && m_sources.contains (url.host ()) ? m_sources [url.host ()] : m_sources ["urlsource"]));
src->setSubURL (KURL ());
src->setURL (url);
setSource (src);
@@ -1563,7 +1563,7 @@ TQString URLSource::prettyName () {
static bool isPlayListMime (const TQString & mime) {
TQString m (mime);
- int plugin_pos = m.tqfind ("-plugin");
+ int plugin_pos = m.find ("-plugin");
if (plugin_pos > 0)
m.truncate (plugin_pos);
const char * mimestr = m.ascii ();
@@ -1616,7 +1616,7 @@ KDE_NO_EXPORT void URLSource::read (NodePtr root, TQTextStream & textstream) {
break;
kdDebug () << "Group found: " << line << endl;
} else if (groupfound) {
- int eq_pos = line.tqfind (TQChar ('='));
+ int eq_pos = line.find (TQChar ('='));
if (eq_pos > 0) {
if (line.lower ().startsWith (TQString ("numberofentries"))) {
nr = line.mid (eq_pos + 1).stripWhiteSpace ().toInt ();
@@ -1874,7 +1874,7 @@ void DataCache::add (const TQString & url, const TQByteArray & data) {
}
bool DataCache::get (const TQString & url, TQByteArray & data) {
- DataMap::const_iterator it = cache_map.tqfind (url);
+ DataMap::const_iterator it = cache_map.find (url);
if (it != cache_map.end ()) {
data.duplicate (it.data ());
return true;
@@ -1883,7 +1883,7 @@ bool DataCache::get (const TQString & url, TQByteArray & data) {
}
bool DataCache::preserve (const TQString & url) {
- PreserveMap::const_iterator it = preserve_map.tqfind (url);
+ PreserveMap::const_iterator it = preserve_map.find (url);
if (it == preserve_map.end ()) {
preserve_map.insert (url, true);
return true;
@@ -1892,11 +1892,11 @@ bool DataCache::preserve (const TQString & url) {
}
bool DataCache::isPreserved (const TQString & url) {
- return preserve_map.tqfind (url) != preserve_map.end ();
+ return preserve_map.find (url) != preserve_map.end ();
}
bool DataCache::unpreserve (const TQString & url) {
- const PreserveMap::iterator it = preserve_map.tqfind (url);
+ const PreserveMap::iterator it = preserve_map.find (url);
if (it == preserve_map.end ())
return false;
preserve_map.erase (it);