summaryrefslogtreecommitdiffstats
path: root/kalarm/undo.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
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kalarm/undo.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/undo.cpp')
-rw-r--r--kalarm/undo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kalarm/undo.cpp b/kalarm/undo.cpp
index 81d101c3f..4d951c17f 100644
--- a/kalarm/undo.cpp
+++ b/kalarm/undo.cpp
@@ -68,7 +68,7 @@ class UndoItem
UndoItem(Undo::Type);
static TQString addDeleteActionText(KAEvent::tqStatus, bool add);
TQString description(const KAEvent&) const;
- void replaceWith(UndoItem* item) { Undo::tqreplace(this, item); }
+ void replaceWith(UndoItem* item) { Undo::replace(this, item); }
int mId; // unique identifier (only for mType = UNDO, REDO)
Undo::Type mType; // which list (if any) the object is in
@@ -398,13 +398,13 @@ void Undo::remove(UndoItem* item, bool undo)
/******************************************************************************
* Replace an undo item in one of the lists.
*/
-void Undo::tqreplace(UndoItem* old, UndoItem* New)
+void Undo::replace(UndoItem* old, UndoItem* New)
{
Type type = old->type();
List* list = (type == UNDO) ? &mUndoList : (type == REDO) ? &mRedoList : 0;
if (!list)
return;
- Iterator it = list->tqfind(old);
+ Iterator it = list->find(old);
if (it != list->end())
{
New->setType(type); // ensure the item points to the correct list
@@ -468,7 +468,7 @@ TQValueList<int> Undo::ids(Undo::Type type)
for (Undo::List::ConstIterator u = undos.begin(); u != undos.end(); ++u)
{
TQString evid = (*u)->eventID();
- if (ignoreIDs.tqfind(evid) != ignoreIDs.end())
+ if (ignoreIDs.find(evid) != ignoreIDs.end())
omit = true;
else if (omit)
ignoreIDs.append(evid);
@@ -483,7 +483,7 @@ TQValueList<int> Undo::ids(Undo::Type type)
}
else
{
- omit = (ignoreIDs.tqfind(item->eventID()) != ignoreIDs.end());
+ omit = (ignoreIDs.find(item->eventID()) != ignoreIDs.end());
if (!omit)
ignoreIDs.append(item->eventID());
if (item->operation() == UndoItem::EDIT)