From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kab/addressbook.cc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kab/addressbook.cc') diff --git a/kab/addressbook.cc b/kab/addressbook.cc index d176bf29f..d5813237c 100644 --- a/kab/addressbook.cc +++ b/kab/addressbook.cc @@ -225,7 +225,7 @@ bool AddressBook::Entry::Address::nameOfField(const char* key, TQString& value) for(counter=0; countertqfind(Fields[counter]); + pos=fields->find(Fields[counter]); if(pos==fields->end()) { kdDebug(KAB_KDEBUG_AREA) << " UNDEFINED" << endl; @@ -238,7 +238,7 @@ bool AddressBook::Entry::Address::nameOfField(const char* key, TQString& value) #endif } // ----- now finally do the lookup: - pos=fields->tqfind(key); + pos=fields->find(key); if(pos==fields->end()) { return false; @@ -354,7 +354,7 @@ bool AddressBook::Entry::nameOfField(const char* key, TQString& value) for(counter=0; countertqfind(Fields[counter]); + pos=fields->find(Fields[counter]); if(pos==fields->end()) { kdDebug(KAB_KDEBUG_AREA) << " UNDEFINED" << endl; @@ -367,7 +367,7 @@ bool AddressBook::Entry::nameOfField(const char* key, TQString& value) #endif } // ----- now finally do the lookup: - pos=fields->tqfind(key); + pos=fields->find(key); if(pos==fields->end()) { return false; @@ -1148,7 +1148,7 @@ AddressBook::change(const KabKey& key, const Entry& entry) return PermDenied; // cannot get r/w mode } // ----- - if(!theEntries->tqfind(key.getKey(), oldEntry)) + if(!theEntries->find(key.getKey(), oldEntry)) { rc=NoSuchEntry; } else { @@ -1386,13 +1386,13 @@ AddressBook::makeEntryFromSection(Section* section, Entry& entry) }; const int StringListKeySize=sizeof(StringListKeys)/sizeof(StringListKeys[0]); // ----- first parse "addresses" subsection: - if(!section->tqfind(ADDRESS_SUBSECTION, addresses)) + if(!section->find(ADDRESS_SUBSECTION, addresses)) { return InternError; // no subsection called "addresses" } for(pos=addresses->sectionsBegin(); pos!=addresses->sectionsEnd(); ++pos) { - if(!addresses->tqfind((*pos).first, addressSection)) + if(!addresses->find((*pos).first, addressSection)) { return InternError; // no section we have an iterator for? } @@ -1404,7 +1404,7 @@ AddressBook::makeEntryFromSection(Section* section, Entry& entry) temp.addresses.push_back(address); } else { kdDebug(KAB_KDEBUG_AREA) - << "AddressBook::makeEntryFromSection: cannot tqfind all fields " + << "AddressBook::makeEntryFromSection: cannot find all fields " << "in an address subsection." << endl; } } @@ -1505,7 +1505,7 @@ AddressBook::makeSectionFromEntry(const Entry& entry, Section& section) << " " << endl; return InternError; } - if(!section.tqfind(ADDRESS_SUBSECTION, addresses)) + if(!section.find(ADDRESS_SUBSECTION, addresses)) { kdDebug(KAB_KDEBUG_AREA) << "AddressBook::makeSectionFromEntry: cannot get new section." << endl; @@ -1522,7 +1522,7 @@ AddressBook::makeSectionFromEntry(const Entry& entry, Section& section) << "AddressBook::makeSectionFromEntry: cannot create address " << endl; return InternError; } - if(!addresses->tqfind(key, address)) + if(!addresses->find(key, address)) { kdDebug(KAB_KDEBUG_AREA) << "AddressBook::makeSectionFromEntry: cannot get new " << endl; @@ -1596,7 +1596,7 @@ AddressBook::createNew(const TQString& filename) || !db.setFileName(KabTemplateFile, true, true)) { KMessageBox::error(this, - i18n("Cannot tqfind kab's template file.\n" + i18n("Cannot find kab's template file.\n" "You cannot create new files."), i18n("File Error")); return InternError; @@ -1648,7 +1648,7 @@ AddressBook::createConfigFile() || !db.setFileName(ConfigTemplateFile, true, true)) { KMessageBox::error(this, - i18n("Cannot tqfind kab's configuration template file.\n" + i18n("Cannot find kab's configuration template file.\n" "kab cannot be configured."), i18n("File Error")); @@ -1705,7 +1705,7 @@ AddressBook::loadConfigFile() } } else { KMessageBox::information(this, - i18n("Cannot tqfind kab's local configuration file.\n" + i18n("Cannot find kab's local configuration file.\n" "kab cannot be configured."), i18n("File Error")); return NoSuchFile; @@ -1872,7 +1872,7 @@ AddressBook::ErrorCode AddressBook::Entry::get(const char* fieldname, TQVariant& field=custom; return NoError; } - // ----- we did not tqfind that field: + // ----- we did not find that field: return NoSuchField; } @@ -1939,7 +1939,7 @@ AddressBook::ErrorCode AddressBook::Entry::Address::get(const char* fieldname, field=state; return NoError; } - // ----- we did not tqfind that field: + // ----- we did not find that field: return NoSuchField; } @@ -2005,7 +2005,7 @@ AddressBook::ErrorCode AddressBook::categories(CategoriesMap& cat) section=categoriesSection(); Q_CHECK_PTR(section); // ----- - if(!section->tqfind(KAB_CATEGORY_KEY, categories)) + if(!section->find(KAB_CATEGORY_KEY, categories)) { kdDebug(KAB_KDEBUG_AREA) << "AddressBook::categories: error in database structure." -- cgit v1.2.1