Removed obsolete CHECK_PTR and replaced CHECK_PTR/Q_CHECK_PTR with TQ_CHECK_PTR.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 5 years ago
parent 8df1e285ac
commit 0cd4d56576
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -161,7 +161,7 @@ KCleanupCollection::deepCopy( const KCleanupCollection &src )
void void
KCleanupCollection::add( KCleanup *newCleanup ) KCleanupCollection::add( KCleanup *newCleanup )
{ {
CHECK_PTR( newCleanup ); TQ_CHECK_PTR( newCleanup );
if ( _cleanupDict[ newCleanup->id() ] ) // Already there? if ( _cleanupDict[ newCleanup->id() ] ) // Already there?
{ {
@ -236,7 +236,7 @@ KCleanupCollection::addUserCleanups( int number )
_nextUserCleanupNo++; _nextUserCleanupNo++;
KCleanup *cleanup = new KCleanup( id, "", title, _actionCollection ); KCleanup *cleanup = new KCleanup( id, "", title, _actionCollection );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setEnabled( false ); cleanup->setEnabled( false );
if ( i <= 9 ) if ( i <= 9 )

@ -237,7 +237,7 @@ void
KDirStatApp::initCleanups() KDirStatApp::initCleanups()
{ {
_cleanupCollection = new KCleanupCollection( actionCollection() ); _cleanupCollection = new KCleanupCollection( actionCollection() );
CHECK_PTR( _cleanupCollection ); TQ_CHECK_PTR( _cleanupCollection );
_cleanupCollection->addStdCleanups(); _cleanupCollection->addStdCleanups();
_cleanupCollection->addUserCleanups( USER_CLEANUPS ); _cleanupCollection->addUserCleanups( USER_CLEANUPS );
_cleanupCollection->slotReadConfig(); _cleanupCollection->slotReadConfig();
@ -688,7 +688,7 @@ KDirStatApp::preferences()
if ( ! _settingsDialog ) if ( ! _settingsDialog )
{ {
_settingsDialog = new KDirStat::KSettingsDialog( this ); _settingsDialog = new KDirStat::KSettingsDialog( this );
CHECK_PTR( _settingsDialog ); TQ_CHECK_PTR( _settingsDialog );
} }
if ( ! _settingsDialog->isVisible() ) if ( ! _settingsDialog->isVisible() )
@ -807,7 +807,7 @@ KDirStatApp::createTreemapView()
_treemapView = new KTreemapView( _treeView->tree(), _splitter, _treemapView = new KTreemapView( _treeView->tree(), _splitter,
TQSize( _splitter->width(), _treemapViewHeight ) ); TQSize( _splitter->width(), _treemapViewHeight ) );
CHECK_PTR( _treemapView ); TQ_CHECK_PTR( _treemapView );
connect( _treemapView, TQT_SIGNAL( contextMenu( KTreemapTile *, const TQPoint & ) ), connect( _treemapView, TQT_SIGNAL( contextMenu( KTreemapTile *, const TQPoint & ) ),
this, TQT_SLOT ( contextMenu( KTreemapTile *, const TQPoint & ) ) ); this, TQT_SLOT ( contextMenu( KTreemapTile *, const TQPoint & ) ) );

@ -22,7 +22,7 @@ KDirStatApp::sendFeedbackMail()
if ( ! _feedbackDialog ) if ( ! _feedbackDialog )
{ {
_feedbackDialog = new KFeedbackDialog( "sh@suse.de", "feedback_mail" ); _feedbackDialog = new KFeedbackDialog( "sh@suse.de", "feedback_mail" );
CHECK_PTR( _feedbackDialog ); TQ_CHECK_PTR( _feedbackDialog );
connect( _feedbackDialog->form(), TQT_SIGNAL( mailSent() ), connect( _feedbackDialog->form(), TQT_SIGNAL( mailSent() ),
this, TQT_SLOT( feedbackMailSent() ) ); this, TQT_SLOT( feedbackMailSent() ) );

@ -502,7 +502,7 @@ KCleanupListBoxItem::KCleanupListBoxItem( KCleanupListBox * listBox,
: TQListBoxText( listBox ) : TQListBoxText( listBox )
, _cleanup( cleanup ) , _cleanup( cleanup )
{ {
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
setText( cleanup->cleanTitle() ); setText( cleanup->cleanTitle() );
} }

@ -55,7 +55,7 @@ KFileInfo::KFileInfo( const TQString & filenameWithoutPath,
, _next( 0 ) , _next( 0 )
, _tree( tree ) , _tree( tree )
{ {
CHECK_PTR( statInfo ); TQ_CHECK_PTR( statInfo );
_isLocalFile = true; _isLocalFile = true;
_name = filenameWithoutPath; _name = filenameWithoutPath;
@ -107,7 +107,7 @@ KFileInfo::KFileInfo( const KFileItem * fileItem,
, _next( 0 ) , _next( 0 )
, _tree( tree ) , _tree( tree )
{ {
CHECK_PTR( fileItem ); TQ_CHECK_PTR( fileItem );
_isLocalFile = fileItem->isLocalFile(); _isLocalFile = fileItem->isLocalFile();
_name = parent ? fileItem->name() : fileItem->url().url(); _name = parent ? fileItem->name() : fileItem->url().url();
@ -576,7 +576,7 @@ KDirInfo::isBusy()
void void
KDirInfo::insertChild( KFileInfo *newChild ) KDirInfo::insertChild( KFileInfo *newChild )
{ {
CHECK_PTR( newChild ); TQ_CHECK_PTR( newChild );
if ( newChild->isDir() || _dotEntry == 0 || _isDotEntry ) if ( newChild->isDir() || _dotEntry == 0 || _isDotEntry )
{ {
@ -1499,7 +1499,7 @@ KDirTree::deleteSubtree( KFileInfo *subtree )
void void
KDirTree::addJob( KDirReadJob * job ) KDirTree::addJob( KDirReadJob * job )
{ {
CHECK_PTR( job ); TQ_CHECK_PTR( job );
_jobQueue.enqueue( job ); _jobQueue.enqueue( job );
} }

@ -192,7 +192,7 @@ void
KFileInfoSortedIterator::delayedInit() KFileInfoSortedIterator::delayedInit()
{ {
_childrenList = new KFileInfoList( _sortOrder, _ascending ); _childrenList = new KFileInfoList( _sortOrder, _ascending );
CHECK_PTR( _childrenList ); TQ_CHECK_PTR( _childrenList );
if ( _sortOrder == KSortByName ) if ( _sortOrder == KSortByName )
{ {

@ -983,7 +983,7 @@ KDirTreeViewItem::KDirTreeViewItem( KDirTreeView * view,
KFileInfo * orig ) KFileInfo * orig )
: TQListViewItem( parent ) : TQListViewItem( parent )
{ {
CHECK_PTR( parent ); TQ_CHECK_PTR( parent );
init( view, parent, orig ); init( view, parent, orig );
} }

@ -41,7 +41,7 @@ KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress,
setHelp( helpTopic ); setHelp( helpTopic );
_form = new KFeedbackForm( feedbackMailAddress, plainPage() ); _form = new KFeedbackForm( feedbackMailAddress, plainPage() );
CHECK_PTR( _form ); TQ_CHECK_PTR( _form );
layout->addWidget( _form ); layout->addWidget( _form );
checkSendButton(); checkSendButton();
@ -95,7 +95,7 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
// //
_questionList = new KFeedbackQuestionList( this ); _questionList = new KFeedbackQuestionList( this );
CHECK_PTR( _questionList ); TQ_CHECK_PTR( _questionList );
connect( _questionList, TQT_SIGNAL( checkComplete() ), connect( _questionList, TQT_SIGNAL( checkComplete() ),
this, TQT_SLOT ( slotCheckComplete() ) ); this, TQT_SLOT ( slotCheckComplete() ) );
@ -106,21 +106,21 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
// //
TQHBox * hbox = new TQHBox( this ); TQHBox * hbox = new TQHBox( this );
CHECK_PTR( hbox ); TQ_CHECK_PTR( hbox );
TQSizePolicy pol( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); // hor / vert TQSizePolicy pol( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); // hor / vert
label = new TQLabel( i18n( "Questions marked with " ), hbox ); label = new TQLabel( i18n( "Questions marked with " ), hbox );
CHECK_PTR( label ); TQ_CHECK_PTR( label );
label->setSizePolicy( pol ); label->setSizePolicy( pol );
label = new TQLabel( hbox ); label = new TQLabel( hbox );
CHECK_PTR( label ); TQ_CHECK_PTR( label );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "edit", TDEIcon::Small ) ); label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "edit", TDEIcon::Small ) );
label->setSizePolicy( pol ); label->setSizePolicy( pol );
label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox ); label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
CHECK_PTR( label ); TQ_CHECK_PTR( label );
label->setSizePolicy( pol ); label->setSizePolicy( pol );
new TQWidget( hbox ); // Fill any leftover space to the right. new TQWidget( hbox ); // Fill any leftover space to the right.
@ -130,8 +130,8 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
// Free-text comment field // Free-text comment field
// //
label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this ); CHECK_PTR( label ); label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this ); TQ_CHECK_PTR( label );
_comment = new TQMultiLineEdit( this ); CHECK_PTR( _comment ); _comment = new TQMultiLineEdit( this ); TQ_CHECK_PTR( _comment );
label->setBuddy( _comment ); label->setBuddy( _comment );
_comment->setWordWrap( TQMultiLineEdit::FixedColumnWidth ); _comment->setWordWrap( TQMultiLineEdit::FixedColumnWidth );
@ -289,7 +289,7 @@ KFeedbackQuestionList::addQuestion( const TQString & text,
KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id, KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
exclusiveAnswer, exclusiveAnswer,
required ); required );
CHECK_PTR( question ); TQ_CHECK_PTR( question );
return question; return question;
} }
@ -304,7 +304,7 @@ KFeedbackQuestionList::addYesNoQuestion( const TQString & text,
KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id, KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
true, // exclusive true, // exclusive
required ); required );
CHECK_PTR( question ); TQ_CHECK_PTR( question );
question->addAnswer( i18n( "yes" ), "yes" ); question->addAnswer( i18n( "yes" ), "yes" );
question->addAnswer( i18n( "no" ), "no" ); question->addAnswer( i18n( "no" ), "no" );
} }

@ -22,7 +22,7 @@ KStdCleanup::openInKonqueror( TDEActionCollection *parent )
"kfmclient openURL %p", "kfmclient openURL %p",
i18n( "Open in &Konqueror" ), i18n( "Open in &Konqueror" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( true ); cleanup->setWorksForFile ( true );
cleanup->setWorksForDotEntry( true ); cleanup->setWorksForDotEntry( true );
@ -42,7 +42,7 @@ KStdCleanup::openInTerminal( TDEActionCollection *parent )
"konsole", "konsole",
i18n( "Open in &Terminal" ), i18n( "Open in &Terminal" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( true ); cleanup->setWorksForFile ( true );
cleanup->setWorksForDotEntry( true ); cleanup->setWorksForDotEntry( true );
@ -61,7 +61,7 @@ KStdCleanup::compressSubtree( TDEActionCollection *parent )
"cd ..; tar cjvf %n.tar.bz2 %n && rm -rf %n", "cd ..; tar cjvf %n.tar.bz2 %n && rm -rf %n",
i18n( "&Compress" ), i18n( "&Compress" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( false ); cleanup->setWorksForFile ( false );
cleanup->setWorksForDotEntry( false ); cleanup->setWorksForDotEntry( false );
@ -79,7 +79,7 @@ KStdCleanup::makeClean( TDEActionCollection *parent )
"make clean", "make clean",
i18n( "&make clean" ), i18n( "&make clean" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( false ); cleanup->setWorksForFile ( false );
cleanup->setWorksForDotEntry( true ); cleanup->setWorksForDotEntry( true );
@ -96,7 +96,7 @@ KStdCleanup::deleteTrash( TDEActionCollection *parent )
"rm -f *.o *~ *.bak *.auto core", "rm -f *.o *~ *.bak *.auto core",
i18n( "Delete T&rash Files" ), i18n( "Delete T&rash Files" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( false ); cleanup->setWorksForFile ( false );
cleanup->setWorksForDotEntry( true ); cleanup->setWorksForDotEntry( true );
@ -114,7 +114,7 @@ KStdCleanup::moveToTrashBin( TDEActionCollection *parent )
"kfmclient move %p %t", "kfmclient move %p %t",
i18n( "Delete (to Trash &Bin)" ), i18n( "Delete (to Trash &Bin)" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( true ); cleanup->setWorksForFile ( true );
cleanup->setWorksForDotEntry( false ); cleanup->setWorksForDotEntry( false );
@ -133,7 +133,7 @@ KStdCleanup::hardDelete( TDEActionCollection *parent )
"rm -rf %p", "rm -rf %p",
i18n( "&Delete (no way to undelete!)" ), i18n( "&Delete (no way to undelete!)" ),
parent ); parent );
CHECK_PTR( cleanup ); TQ_CHECK_PTR( cleanup );
cleanup->setWorksForDir ( true ); cleanup->setWorksForDir ( true );
cleanup->setWorksForFile ( true ); cleanup->setWorksForFile ( true );
cleanup->setWorksForDotEntry( false ); cleanup->setWorksForDotEntry( false );

@ -148,7 +148,7 @@ KTreemapTile::createChildrenSimple( const TQRect & rect,
childRect = TQRect( rect.x(), rect.y() + offset, rect.width(), childSize ); childRect = TQRect( rect.x(), rect.y() + offset, rect.width(), childSize );
KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, childDir ); KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, childDir );
CHECK_PTR( tile ); TQ_CHECK_PTR( tile );
tile->cushionSurface().addRidge( dir, tile->cushionSurface().addRidge( dir,
_cushionSurface.height() * _parentView->heightScaleFactor(), _cushionSurface.height() * _parentView->heightScaleFactor(),
@ -320,7 +320,7 @@ KTreemapTile::layoutRow( const TQRect & rect,
childRect = TQRect( rect.x(), rect.y() + offset, secondary, childSize ); childRect = TQRect( rect.x(), rect.y() + offset, secondary, childSize );
KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, rowCushionSurface ); KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, rowCushionSurface );
CHECK_PTR( tile ); TQ_CHECK_PTR( tile );
tile->cushionSurface().addRidge( dir, tile->cushionSurface().addRidge( dir,
rowCushionSurface.height() * _parentView->heightScaleFactor(), rowCushionSurface.height() * _parentView->heightScaleFactor(),

@ -410,7 +410,7 @@ KTreemapView::rebuildTreemap( KFileInfo * newRoot,
if ( ! canvas() ) if ( ! canvas() )
{ {
TQCanvas * canv = new TQCanvas( TQT_TQOBJECT(this) ); TQCanvas * canv = new TQCanvas( TQT_TQOBJECT(this) );
CHECK_PTR( canv ); TQ_CHECK_PTR( canv );
setCanvas( canv ); setCanvas( canv );
} }

Loading…
Cancel
Save