Rename additional global TQt functions

pull/1/head
Timothy Pearson 12 years ago
parent b886296ebf
commit 5a7b1bb05b

@ -4,7 +4,7 @@
#ifndef FILETREE_H
#define FILETREE_H
#include <tqcstring.h> //qstrdup
#include <tqcstring.h> //tqstrdup
#include <tqfile.h> //decodeName()
#include <stdlib.h>
@ -165,7 +165,7 @@ public:
static const uint DENOMINATOR[4];
public:
File( const char *name, FileSize size ) : m_parent( 0 ), m_name( qstrdup( name ) ), m_size( size ) {}
File( const char *name, FileSize size ) : m_parent( 0 ), m_name( tqstrdup( name ) ), m_size( size ) {}
virtual ~File() { delete [] m_name; }
const Directory *parent() const { return m_parent; }
@ -182,7 +182,7 @@ public:
static TQString humanReadableSize( uint size, UnitPrefix Key = mega );
protected:
File( const char *name, FileSize size, Directory *parent ) : m_parent( parent ), m_name( qstrdup( name ) ), m_size( size ) {}
File( const char *name, FileSize size, Directory *parent ) : m_parent( parent ), m_name( tqstrdup( name ) ), m_size( size ) {}
Directory *m_parent; //0 if this is treeRoot
char *m_name;
@ -207,7 +207,7 @@ public:
{
if( name ) {
delete [] d->m_name;
d->m_name = qstrdup( name ); } //directories that had a fullpath copy just their names this way
d->m_name = tqstrdup( name ); } //directories that had a fullpath copy just their names this way
m_children += d->children(); //doesn't include the dir itself
d->m_parent = this;

Loading…
Cancel
Save