summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/drivermanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kexi/kexidb/drivermanager.cpp
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/drivermanager.cpp')
-rw-r--r--kexi/kexidb/drivermanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/kexidb/drivermanager.cpp b/kexi/kexidb/drivermanager.cpp
index 1afcbd64..0a7ff574 100644
--- a/kexi/kexidb/drivermanager.cpp
+++ b/kexi/kexidb/drivermanager.cpp
@@ -115,7 +115,7 @@ bool DriverManagerInternal::lookupDrivers()
<< ptr->property("Name").toString() << "\" service!\n -- skipped!" << endl;
continue;
}
- if (m_services_lcase.tqcontains(srv_name.lower())) {
+ if (m_services_lcase.contains(srv_name.lower())) {
KexiDBWarn << "DriverManagerInternal::lookupDrivers(): more than one driver named '"
<< srv_name.lower() << "'\n -- skipping this one!" << endl;
continue;
@@ -160,7 +160,7 @@ bool DriverManagerInternal::lookupDrivers()
//store association of this driver with all listed mime types
for (TQStringList::ConstIterator mime_it = mimes.constBegin(); mime_it!=mimes.constEnd(); ++mime_it) {
TQString mime( (*mime_it).lower() );
- if (!m_services_by_mimetype.tqcontains(mime)) {
+ if (!m_services_by_mimetype.contains(mime)) {
m_services_by_mimetype.insert(mime, ptr);
}
else {
@@ -198,16 +198,16 @@ Driver* DriverManagerInternal::driver(const TQString& name)
clearError();
KexiDBDbg << "DriverManager::driver(): loading " << name << endl;
- Driver *drv = name.isEmpty() ? 0 : m_drivers.tqfind(name.latin1());
+ Driver *drv = name.isEmpty() ? 0 : m_drivers.find(name.latin1());
if (drv)
return drv; //cached
- if (!m_services_lcase.tqcontains(name.lower())) {
+ if (!m_services_lcase.contains(name.lower())) {
setError(ERR_DRIVERMANAGER, i18n("Could not find database driver \"%1\".").tqarg(name) );
return 0;
}
- KService::Ptr ptr= *(m_services_lcase.tqfind(name.lower()));
+ KService::Ptr ptr= *(m_services_lcase.find(name.lower()));
TQString srv_name = ptr->property("X-Kexi-DriverName").toString();
KexiDBDbg << "KexiDBInterfaceManager::load(): library: "<<ptr->library()<<endl;
@@ -357,8 +357,8 @@ KService::Ptr DriverManager::serviceInfo(const TQString &name)
}
clearError();
- if (d_int->m_services_lcase.tqcontains(name.lower())) {
- return *d_int->m_services_lcase.tqfind(name.lower());
+ if (d_int->m_services_lcase.contains(name.lower())) {
+ return *d_int->m_services_lcase.find(name.lower());
} else {
setError(ERR_DRIVERMANAGER, i18n("No such driver service: \"%1\".").tqarg(name) );
return KService::Ptr();