diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 79128018a1b71d8fa9218e925a2409abb6fce7d2 (patch) | |
tree | 56dd01f61e8c1d90445cb1f2e2a03b362e76e979 /ksquirrel/sq_libraryhandler.cpp | |
parent | bab0c762c48a8defdeda42a1e3351179b0c3c2f7 (diff) | |
download | ksquirrel-79128018a1b71d8fa9218e925a2409abb6fce7d2.tar.gz ksquirrel-79128018a1b71d8fa9218e925a2409abb6fce7d2.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksquirrel@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksquirrel/sq_libraryhandler.cpp')
-rw-r--r-- | ksquirrel/sq_libraryhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksquirrel/sq_libraryhandler.cpp b/ksquirrel/sq_libraryhandler.cpp index a86a7e5..a264d33 100644 --- a/ksquirrel/sq_libraryhandler.cpp +++ b/ksquirrel/sq_libraryhandler.cpp @@ -84,7 +84,7 @@ SQ_LIBRARY* SQ_LibraryHandler::libraryForFile(const KURL &url) { if((*it).mime_multi) { - if((*it).mimetype.tqfind(mime->name()) != -1) + if((*it).mimetype.find(mime->name()) != -1) { l = &(*it); break; @@ -276,7 +276,7 @@ void SQ_LibraryHandler::add(TQStringList &foundLibraries) { libtmp.mime = TQPixmap(reinterpret_cast<const char **>(o.pixmap)); libtmp.mimetype = o.mimetype; - libtmp.mime_multi = libtmp.mimetype.tqfind(';') != -1; + libtmp.mime_multi = libtmp.mimetype.find(';') != -1; libtmp.quickinfo = q; libtmp.filter = o.filter; libtmp.version = o.version; @@ -339,7 +339,7 @@ bool SQ_LibraryHandler::alreadyInMap(const TQString &quick) const { const_iterator itEnd = end(); - // go through array and tqfind 'quick' + // go through array and find 'quick' for(const_iterator it = begin();it != itEnd;++it) if((*it).quickinfo == quick) return true; @@ -380,7 +380,7 @@ bool SQ_LibraryHandler::knownExtension(const TQString &ext) // go through array and compare extensions for(iterator it = begin();it != itEnd;++it) { - if((*it).filter.tqcontains(ext, false)) + if((*it).filter.contains(ext, false)) return true; } @@ -554,10 +554,10 @@ SQ_LibraryHandler::Support SQ_LibraryHandler::maybeSupported(const KURL &u, cons { if((*it).mime_multi) { - if((*it).mimetype.tqfind(mimeDet, 0, false) != -1) + if((*it).mimetype.find(mimeDet, 0, false) != -1) return SQ_LibraryHandler::Yes; } - else if((*it).mimetype == mimeDet) // don't waste CPU time with tqfind() + else if((*it).mimetype == mimeDet) // don't waste CPU time with find() return SQ_LibraryHandler::Yes; } |