summaryrefslogtreecommitdiffstats
path: root/kdat/Archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdat/Archive.cpp')
-rw-r--r--kdat/Archive.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdat/Archive.cpp b/kdat/Archive.cpp
index a6869ad..ad66dbd 100644
--- a/kdat/Archive.cpp
+++ b/kdat/Archive.cpp
@@ -289,40 +289,40 @@ File* Archive::addFile( int size, int mtime, int startRecord, int endRecord, con
//path.remove(path.first());
path.remove(path.begin());
TQPtrListIterator<File> i( getChildren() );
- File* tqparent = 0;
+ File* parent = 0;
for ( ; i.current() ; ++i ) {
if ( i.current()->getName() == dir ) {
- tqparent = i.current();
+ parent = i.current();
break;
}
}
- if ( tqparent == 0 ) {
- tqparent = new File( 0, 0, 0, startRecord, endRecord, dir );
- addChild( tqparent );
+ if ( parent == 0 ) {
+ parent = new File( 0, 0, 0, startRecord, endRecord, dir );
+ addChild( parent );
}
for ( TQStringList::Iterator j = path.begin();
j != path.end();
++j ) {
TQString dir = *j;
- File* ptqparent = tqparent;
- TQPtrListIterator<File> i( ptqparent->getChildren() );
- for ( tqparent = 0; i.current() ; ++i ) {
+ File* pparent = parent;
+ TQPtrListIterator<File> i( pparent->getChildren() );
+ for ( parent = 0; i.current() ; ++i ) {
if ( i.current()->getName() == dir ) {
- tqparent = i.current();
+ parent = i.current();
break;
}
}
- if ( tqparent == 0 ) {
- tqparent = new File( ptqparent, 0, 0, 0, 0, dir );
- ptqparent->addChild( tqparent );
+ if ( parent == 0 ) {
+ parent = new File( pparent, 0, 0, 0, 0, dir );
+ pparent->addChild( parent );
}
}
- file = new File( tqparent, size, mtime, startRecord, endRecord, fn );
- tqparent->addChild( file );
+ file = new File( parent, size, mtime, startRecord, endRecord, fn );
+ parent->addChild( file );
return file;
}