diff options
Diffstat (limited to 'kexi/kexidb/drivermanager.cpp')
-rw-r--r-- | kexi/kexidb/drivermanager.cpp | 14 |
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(); |