summaryrefslogtreecommitdiffstats
path: root/kmail/messageproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/messageproperty.cpp')
-rw-r--r--kmail/messageproperty.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmail/messageproperty.cpp b/kmail/messageproperty.cpp
index 91261540f..b8b37f915 100644
--- a/kmail/messageproperty.cpp
+++ b/kmail/messageproperty.cpp
@@ -42,14 +42,14 @@ TQMap<const KMMsgBase*, long > MessageProperty::sSerialCache;
bool MessageProperty::filtering( TQ_UINT32 serNum )
{
- return sFolders.tqcontains( serNum );
+ return sFolders.contains( serNum );
}
void MessageProperty::setFiltering( TQ_UINT32 serNum, bool filter )
{
assert(!filtering(serNum) || !filter);
if (filter && !filtering(serNum))
- sFolders.tqreplace(serNum, TQGuardedPtr<KMFolder>(0) );
+ sFolders.replace(serNum, TQGuardedPtr<KMFolder>(0) );
else if (!filter)
sFolders.remove(serNum);
}
@@ -66,7 +66,7 @@ void MessageProperty::setFiltering( const KMMsgBase *msgBase, bool filter )
KMFolder* MessageProperty::filterFolder( TQ_UINT32 serNum )
{
- TQMap<TQ_UINT32, TQGuardedPtr<KMFolder> >::const_iterator it = sFolders.tqfind( serNum );
+ TQMap<TQ_UINT32, TQGuardedPtr<KMFolder> >::const_iterator it = sFolders.find( serNum );
return it == sFolders.constEnd() ? 0 : (*it).operator->();
}
@@ -87,7 +87,7 @@ void MessageProperty::setFilterFolder( const KMMsgBase *msgBase, KMFolder* folde
ActionScheduler* MessageProperty::filterHandler( TQ_UINT32 serNum )
{
- TQMap<TQ_UINT32, TQGuardedPtr<ActionScheduler> >::const_iterator it = sHandlers.tqfind( serNum );
+ TQMap<TQ_UINT32, TQGuardedPtr<ActionScheduler> >::const_iterator it = sHandlers.find( serNum );
return it == sHandlers.constEnd() ? 0 : (*it).operator->();
}
@@ -111,14 +111,14 @@ void MessageProperty::setFilterHandler( const KMMsgBase *msgBase, ActionSchedule
bool MessageProperty::transferInProgress( TQ_UINT32 serNum )
{
- TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.tqfind( serNum );
+ TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.find( serNum );
return it == sTransfers.constEnd() ? false : *it;
}
void MessageProperty::setTransferInProgress( TQ_UINT32 serNum, bool transfer, bool force )
{
int transferInProgress = 0;
- TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.tqfind( serNum );
+ TQMap<TQ_UINT32, int >::const_iterator it = sTransfers.find( serNum );
if (it != sTransfers.constEnd())
transferInProgress = *it;
if ( force && !transfer )
@@ -145,7 +145,7 @@ void MessageProperty::setTransferInProgress( const KMMsgBase *msgBase, bool tran
TQ_UINT32 MessageProperty::serialCache( const KMMsgBase *msgBase )
{
- TQMap<const KMMsgBase*, long >::const_iterator it = sSerialCache.tqfind( msgBase );
+ TQMap<const KMMsgBase*, long >::const_iterator it = sSerialCache.find( msgBase );
return it == sSerialCache.constEnd() ? 0 : *it;
}