summaryrefslogtreecommitdiffstats
path: root/kresources/exchange/dateset.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 /kresources/exchange/dateset.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 'kresources/exchange/dateset.cpp')
-rw-r--r--kresources/exchange/dateset.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kresources/exchange/dateset.cpp b/kresources/exchange/dateset.cpp
index e6393afa0..b26229022 100644
--- a/kresources/exchange/dateset.cpp
+++ b/kresources/exchange/dateset.cpp
@@ -48,7 +48,7 @@ void DateSet::add( TQDate const& date )
mDates->insert( 0, new TQPair<TQDate,TQDate>( date, date ) );
return;
}
- int i = tqfind( date );
+ int i = find( date );
mDates->insert( i, new TQPair<TQDate,TQDate>( date, date ) );
tryMerge( i );
tryMerge( i-1 );
@@ -60,7 +60,7 @@ void DateSet::add( TQDate const& from, TQDate const& to )
mDates->insert( 0, new TQPair<TQDate,TQDate>( from, to ) );
return;
}
- uint i = tqfind( from );
+ uint i = find( from );
kdDebug() << "Adding range at position " << i << endl;
mDates->insert( i, new TQPair<TQDate,TQDate>( from, to ) );
@@ -87,7 +87,7 @@ void DateSet::remove( TQDate const& date )
return;
}
- uint i = tqfind( date );
+ uint i = find( date );
if ( i == mDates->count() )
return;
@@ -117,7 +117,7 @@ void DateSet::remove( TQDate const& from, TQDate const& to )
return;
}
- uint i = tqfind( from );
+ uint i = find( from );
if ( i == mDates->count() )
return;
@@ -155,13 +155,13 @@ void DateSet::remove( TQDate const& from, TQDate const& to )
}
}
-bool DateSet::tqcontains( TQDate const& date )
+bool DateSet::contains( TQDate const& date )
{
if (mDates->isEmpty()) {
return false;
}
- uint i = tqfind( date );
+ uint i = find( date );
// kdDebug() << "contains looking for " << date.toString() << " at range " << i << endl;
if ( i == mDates->count() )
return false;
@@ -172,13 +172,13 @@ bool DateSet::tqcontains( TQDate const& date )
}
// returns true if and only if the whole range is in the set
-bool DateSet::tqcontains( TQDate const& from, TQDate const& to )
+bool DateSet::contains( TQDate const& from, TQDate const& to )
{
if (mDates->isEmpty()) {
return false;
}
- uint i = tqfind( from );
+ uint i = find( from );
if ( i == mDates->count() )
return false;
@@ -192,7 +192,7 @@ bool DateSet::tqcontains( TQDate const& from, TQDate const& to )
// If mDates is empty, return 0.
// If date is later than the last item in mDates, return mDates->count()
-int DateSet::tqfind( TQDate const& date )
+int DateSet::find( TQDate const& date )
{
if ( mDates->isEmpty() )
return 0;