summaryrefslogtreecommitdiffstats
path: root/tdecore/kcompletion.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:57:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:57:02 -0600
commita51cd9949c4e6c726a84a61de3cfadd30cefb5c7 (patch)
treea65321bcfdb90583bcc7ef3a90fa357f6632e54c /tdecore/kcompletion.cpp
parent984c25aa6969e55896e9a13c8e7f7b8a58991a4e (diff)
downloadtdelibs-a51cd9949c4e6c726a84a61de3cfadd30cefb5c7.tar.gz
tdelibs-a51cd9949c4e6c726a84a61de3cfadd30cefb5c7.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'tdecore/kcompletion.cpp')
-rw-r--r--tdecore/kcompletion.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdecore/kcompletion.cpp b/tdecore/kcompletion.cpp
index 784ad017b..84a4cfca2 100644
--- a/tdecore/kcompletion.cpp
+++ b/tdecore/kcompletion.cpp
@@ -127,7 +127,7 @@ void KCompletion::addItem( const TQString& item, uint weight )
// nodes.
for ( uint i = 0; i < len; i++ ) {
- node = node->insert( item.tqat(i), sorted );
+ node = node->insert( item.at(i), sorted );
if ( weighted )
node->confirm( weight -1 ); // node->insert() sets weighting to 1
}
@@ -419,7 +419,7 @@ TQString KCompletion::findCompletion( const TQString& string )
// start at the tree-root and try to find the search-string
for( uint i = 0; i < string.length(); i++ ) {
- ch = string.tqat( i );
+ ch = string.at( i );
node = node->find( ch );
if ( node )
@@ -508,7 +508,7 @@ void KCompletion::findAllCompletions(const TQString& string,
// start at the tree-root and try to find the search-string
for( uint i = 0; i < string.length(); i++ ) {
- ch = string.tqat( i );
+ ch = string.at( i );
node = node->find( ch );
if ( node )
@@ -595,7 +595,7 @@ void KCompletion::extractStringsFromNodeCI( const KCompTreeNode *node,
return;
}
- TQChar ch1 = restString.tqat(0);
+ TQChar ch1 = restString.at(0);
TQString newRest = restString.mid(1);
KCompTreeNode *child1, *child2;
@@ -725,7 +725,7 @@ void KCompTreeNode::remove( const TQString& str )
uint i = 0;
for ( ; i < string.length(); i++ )
{
- child = parent->find( string.tqat( i ) );
+ child = parent->find( string.at( i ) );
if ( child )
deletables.insert( i + 1, child );
else
@@ -736,8 +736,8 @@ void KCompTreeNode::remove( const TQString& str )
for ( ; i >= 1; i-- )
{
- parent = deletables.tqat( i - 1 );
- child = deletables.tqat( i );
+ parent = deletables.at( i - 1 );
+ child = deletables.at( i );
if ( child->myChildren.count() == 0 )
delete parent->myChildren.remove( child );
}
@@ -874,7 +874,7 @@ KCompTreeNode *KCompTreeNodeList::remove(KCompTreeNode *item)
return item;
}
-KCompTreeNode *KCompTreeNodeList::tqat(uint index) const
+KCompTreeNode *KCompTreeNodeList::at(uint index) const
{
KCompTreeNode *cur = first;
while (index-- && cur) cur = cur->next;