summaryrefslogtreecommitdiffstats
path: root/kspread/dependencies.cc
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
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kspread/dependencies.cc
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/dependencies.cc')
-rw-r--r--kspread/dependencies.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kspread/dependencies.cc b/kspread/dependencies.cc
index 7f7c986f..66bbe61a 100644
--- a/kspread/dependencies.cc
+++ b/kspread/dependencies.cc
@@ -92,7 +92,7 @@ class DependencyList {
RangeList computeDependencies (const Point &cell) const;
TQValueList<Point> getCellDeps(const Point& cell) const {
- CellDepsMap::const_iterator it = cellDeps.tqfind( cell );
+ CellDepsMap::const_iterator it = cellDeps.find( cell );
return it == cellDeps.end() ? TQValueList<Point>() : *it;
}
@@ -231,7 +231,7 @@ RangeList DependencyList::getDependencies (const Point &cell)
{
RangeList rl;
//look if the cell has any dependencies
- if (!dependencies.tqcontains (cell))
+ if (!dependencies.contains (cell))
return rl; //it doesn't - return an empty list
//the cell does have dependencies - return them!
@@ -253,7 +253,7 @@ TQValueList<Point> DependencyList::getDependants (const Point &cell)
{
//process all range dependencies, and for each range including the questioned cell,
//add the depending cell to the list
- if ((*it).range.tqcontains (cell))
+ if ((*it).range.contains (cell))
{
Point c;
c.setRow ((*it).cellrow);
@@ -272,7 +272,7 @@ void DependencyList::areaModified (const TQString &name)
// basically means that all cells referencing this area should be treated
// as modified - that will retrieve updated area ranges and also update
// everything as necessary ...
- if (!areaDeps.tqcontains (name))
+ if (!areaDeps.contains (name))
return;
TQMap<Point, bool>::iterator it;
@@ -323,7 +323,7 @@ void DependencyList::addRangeDependency (const RangeDependency &rd)
void DependencyList::removeDependencies (const Point &cell)
{
//look if the cell has any dependencies
- if (!dependencies.tqcontains (cell))
+ if (!dependencies.contains (cell))
return; //it doesn't - nothing more to do
//first we remove cell-dependencies
@@ -336,12 +336,12 @@ void DependencyList::removeDependencies (const Point &cell)
if (!sh)
sh = sheet;
- if (!sh->dependencies()->deps->cellDeps.tqcontains (*it1))
+ if (!sh->dependencies()->deps->cellDeps.contains (*it1))
continue; //this should never happen
//we no longer depend on this cell
TQValueList<Point>::iterator cit;
- cit = sh->dependencies()->deps->cellDeps[*it1].tqfind (cell);
+ cit = sh->dependencies()->deps->cellDeps[*it1].find (cell);
if (cit != sh->dependencies()->deps->cellDeps[*it1].end())
sh->dependencies()->deps->cellDeps[*it1].erase (cit);
}
@@ -356,7 +356,7 @@ void DependencyList::removeDependencies (const Point &cell)
//with lists generated from all previous ranges (duplicates are removed)
TQValueList<Point> leadings = leadingCells (*it2);
for (it1 = leadings.begin(); it1 != leadings.end(); ++it1)
- if (!leads.tqcontains (*it1))
+ if (!leads.contains (*it1))
leads.push_back (*it1);
}
for (it1 = leads.begin(); it1 != leads.end(); ++it1)
@@ -366,7 +366,7 @@ void DependencyList::removeDependencies (const Point &cell)
if (!sh)
sh = sheet;
- if (sh->dependencies()->deps->rangeDeps.tqcontains (*it1))
+ if (sh->dependencies()->deps->rangeDeps.contains (*it1))
{
TQValueList<RangeDependency>::iterator it3;
it3 = sh->dependencies()->deps->rangeDeps[*it1].begin();
@@ -386,7 +386,7 @@ void DependencyList::removeDependencies (const Point &cell)
// remove information about named area dependencies
TQMap<TQString, TQMap<Point, bool> >::iterator itr;
for (itr = areaDeps.begin(); itr != areaDeps.end(); ++itr) {
- if (itr.data().tqcontains (cell))
+ if (itr.data().contains (cell))
itr.data().remove (cell);
}
@@ -481,7 +481,7 @@ void DependencyList::processRangeDependencies (const Point &cell)
{
//process all range dependencies, and for each range including the modified cell,
//recalc the depending cell
- if ((*it).range.tqcontains (cell))
+ if ((*it).range.contains (cell))
{
Point c;
c.setRow ((*it).cellrow);