Browse Source

Removed obsolete CHECK_PTR and replaced CHECK_PTR/Q_CHECK_PTR with TQ_CHECK_PTR.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 5 months ago
parent
commit
0cd4d56576
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF

+ 2
- 2
kdirstat/kcleanupcollection.cpp View File

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

+ 3
- 3
kdirstat/kdirstatapp.cpp View File

@@ -237,7 +237,7 @@ void
237 237
 KDirStatApp::initCleanups()
238 238
 {
239 239
     _cleanupCollection = new KCleanupCollection( actionCollection() );
240
-    CHECK_PTR( _cleanupCollection );
240
+    TQ_CHECK_PTR( _cleanupCollection );
241 241
     _cleanupCollection->addStdCleanups();
242 242
     _cleanupCollection->addUserCleanups( USER_CLEANUPS );
243 243
     _cleanupCollection->slotReadConfig();
@@ -688,7 +688,7 @@ KDirStatApp::preferences()
688 688
     if ( ! _settingsDialog )
689 689
     {
690 690
 	_settingsDialog = new KDirStat::KSettingsDialog( this );
691
-	CHECK_PTR( _settingsDialog );
691
+	TQ_CHECK_PTR( _settingsDialog );
692 692
     }
693 693
 
694 694
     if ( ! _settingsDialog->isVisible() )
@@ -807,7 +807,7 @@ KDirStatApp::createTreemapView()
807 807
 
808 808
     _treemapView = new KTreemapView( _treeView->tree(), _splitter,
809 809
 				     TQSize( _splitter->width(), _treemapViewHeight ) );
810
-    CHECK_PTR( _treemapView );
810
+    TQ_CHECK_PTR( _treemapView );
811 811
 
812 812
     connect( _treemapView,	TQT_SIGNAL( contextMenu( KTreemapTile *, const TQPoint & ) ),
813 813
 	     this,		TQT_SLOT  ( contextMenu( KTreemapTile *, const TQPoint & ) ) );

+ 1
- 1
kdirstat/kdirstatfeedback.cpp View File

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

+ 1
- 1
kdirstat/kdirstatsettings.cpp View File

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

+ 4
- 4
kdirstat/kdirtree.cpp View File

@@ -55,7 +55,7 @@ KFileInfo::KFileInfo( const TQString &	filenameWithoutPath,
55 55
     , _next( 0 )
56 56
     , _tree( tree )
57 57
 {
58
-    CHECK_PTR( statInfo );
58
+    TQ_CHECK_PTR( statInfo );
59 59
 
60 60
     _isLocalFile = true;
61 61
     _name	 = filenameWithoutPath;
@@ -107,7 +107,7 @@ KFileInfo::KFileInfo(  const KFileItem	* fileItem,
107 107
     , _next( 0 )
108 108
     , _tree( tree )
109 109
 {
110
-    CHECK_PTR( fileItem );
110
+    TQ_CHECK_PTR( fileItem );
111 111
 
112 112
     _isLocalFile = fileItem->isLocalFile();
113 113
     _name	 = parent ? fileItem->name() : fileItem->url().url();
@@ -576,7 +576,7 @@ KDirInfo::isBusy()
576 576
 void
577 577
 KDirInfo::insertChild( KFileInfo *newChild )
578 578
 {
579
-    CHECK_PTR( newChild );
579
+    TQ_CHECK_PTR( newChild );
580 580
 
581 581
     if ( newChild->isDir() || _dotEntry == 0 || _isDotEntry )
582 582
     {
@@ -1499,7 +1499,7 @@ KDirTree::deleteSubtree( KFileInfo *subtree )
1499 1499
 void
1500 1500
 KDirTree::addJob( KDirReadJob * job )
1501 1501
 {
1502
-    CHECK_PTR( job );
1502
+    TQ_CHECK_PTR( job );
1503 1503
     _jobQueue.enqueue( job );
1504 1504
 }
1505 1505
 

+ 1
- 1
kdirstat/kdirtreeiterators.cpp View File

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

+ 1
- 1
kdirstat/kdirtreeview.cpp View File

@@ -983,7 +983,7 @@ KDirTreeViewItem::KDirTreeViewItem( KDirTreeView *	view,
983 983
 				    KFileInfo *		orig )
984 984
     : TQListViewItem( parent )
985 985
 {
986
-    CHECK_PTR( parent );
986
+    TQ_CHECK_PTR( parent );
987 987
     init( view, parent, orig );
988 988
 }
989 989
 

+ 10
- 10
kdirstat/kfeedback.cpp View File

@@ -41,7 +41,7 @@ KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress,
41 41
 	setHelp( helpTopic );
42 42
 
43 43
     _form = new KFeedbackForm( feedbackMailAddress, plainPage() );
44
-    CHECK_PTR( _form );
44
+    TQ_CHECK_PTR( _form );
45 45
 
46 46
     layout->addWidget( _form );
47 47
     checkSendButton();
@@ -95,7 +95,7 @@ KFeedbackForm::KFeedbackForm( const TQString &	feedbackMailAddress,
95 95
     //
96 96
     
97 97
     _questionList = new KFeedbackQuestionList( this );
98
-    CHECK_PTR( _questionList );
98
+    TQ_CHECK_PTR( _questionList );
99 99
     
100 100
     connect( _questionList, TQT_SIGNAL( checkComplete()     ),
101 101
 	     this,	    TQT_SLOT  ( slotCheckComplete() ) );
@@ -106,21 +106,21 @@ KFeedbackForm::KFeedbackForm( const TQString &	feedbackMailAddress,
106 106
     //
107 107
 
108 108
     TQHBox * hbox = new TQHBox( this );
109
-    CHECK_PTR( hbox );
109
+    TQ_CHECK_PTR( hbox );
110 110
 
111 111
     TQSizePolicy pol( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); // hor / vert
112 112
     
113 113
     label = new TQLabel( i18n( "Questions marked with " ), hbox ); 
114
-    CHECK_PTR( label );
114
+    TQ_CHECK_PTR( label );
115 115
     label->setSizePolicy( pol );
116 116
 
117 117
     label = new TQLabel( hbox );
118
-    CHECK_PTR( label );
118
+    TQ_CHECK_PTR( label );
119 119
     label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "edit", TDEIcon::Small ) );
120 120
     label->setSizePolicy( pol );
121 121
 
122 122
     label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
123
-    CHECK_PTR( label );
123
+    TQ_CHECK_PTR( label );
124 124
     label->setSizePolicy( pol );
125 125
     
126 126
     new TQWidget( hbox );	// Fill any leftover space to the right.
@@ -130,8 +130,8 @@ KFeedbackForm::KFeedbackForm( const TQString &	feedbackMailAddress,
130 130
     // Free-text comment field
131 131
     //
132 132
 
133
-    label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this );	CHECK_PTR( label );
134
-    _comment = new TQMultiLineEdit( this );				CHECK_PTR( _comment );
133
+    label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this );	TQ_CHECK_PTR( label );
134
+    _comment = new TQMultiLineEdit( this );				TQ_CHECK_PTR( _comment );
135 135
 
136 136
     label->setBuddy( _comment );
137 137
     _comment->setWordWrap( TQMultiLineEdit::FixedColumnWidth );
@@ -289,7 +289,7 @@ KFeedbackQuestionList::addQuestion( const TQString & 	text,
289 289
     KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
290 290
 							  exclusiveAnswer,
291 291
 							  required );
292
-    CHECK_PTR( question );
292
+    TQ_CHECK_PTR( question );
293 293
 
294 294
     return question;
295 295
 }
@@ -304,7 +304,7 @@ KFeedbackQuestionList::addYesNoQuestion( const TQString & 	text,
304 304
     KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
305 305
 							  true,	// exclusive
306 306
 							  required );
307
-    CHECK_PTR( question );
307
+    TQ_CHECK_PTR( question );
308 308
     question->addAnswer( i18n( "yes" ), "yes" );
309 309
     question->addAnswer( i18n( "no"  ), "no"  );
310 310
 }

+ 7
- 7
kdirstat/kstdcleanup.cpp View File

@@ -22,7 +22,7 @@ KStdCleanup::openInKonqueror( TDEActionCollection *parent )
22 22
 				      "kfmclient openURL %p",
23 23
 				      i18n( "Open in &Konqueror" ),
24 24
 				      parent );
25
-    CHECK_PTR( cleanup );
25
+    TQ_CHECK_PTR( cleanup );
26 26
     cleanup->setWorksForDir     ( true );
27 27
     cleanup->setWorksForFile    ( true );
28 28
     cleanup->setWorksForDotEntry( true );
@@ -42,7 +42,7 @@ KStdCleanup::openInTerminal( TDEActionCollection *parent )
42 42
 				      "konsole",
43 43
 				      i18n( "Open in &Terminal" ),
44 44
 				      parent );
45
-    CHECK_PTR( cleanup );
45
+    TQ_CHECK_PTR( cleanup );
46 46
     cleanup->setWorksForDir     ( true );
47 47
     cleanup->setWorksForFile    ( true );
48 48
     cleanup->setWorksForDotEntry( true );
@@ -61,7 +61,7 @@ KStdCleanup::compressSubtree( TDEActionCollection *parent )
61 61
 				      "cd ..; tar cjvf %n.tar.bz2 %n && rm -rf %n",
62 62
 				      i18n( "&Compress" ),
63 63
 				      parent );
64
-    CHECK_PTR( cleanup );
64
+    TQ_CHECK_PTR( cleanup );
65 65
     cleanup->setWorksForDir     ( true  );
66 66
     cleanup->setWorksForFile    ( false );
67 67
     cleanup->setWorksForDotEntry( false );
@@ -79,7 +79,7 @@ KStdCleanup::makeClean( TDEActionCollection *parent )
79 79
 				      "make clean",
80 80
 				      i18n( "&make clean" ),
81 81
 				      parent );
82
-    CHECK_PTR( cleanup );
82
+    TQ_CHECK_PTR( cleanup );
83 83
     cleanup->setWorksForDir     ( true  );
84 84
     cleanup->setWorksForFile    ( false );
85 85
     cleanup->setWorksForDotEntry( true  );
@@ -96,7 +96,7 @@ KStdCleanup::deleteTrash( TDEActionCollection *parent )
96 96
 				      "rm -f *.o *~ *.bak *.auto core",
97 97
 				      i18n( "Delete T&rash Files" ),
98 98
 				      parent );
99
-    CHECK_PTR( cleanup );
99
+    TQ_CHECK_PTR( cleanup );
100 100
     cleanup->setWorksForDir     ( true  );
101 101
     cleanup->setWorksForFile    ( false );
102 102
     cleanup->setWorksForDotEntry( true  );
@@ -114,7 +114,7 @@ KStdCleanup::moveToTrashBin( TDEActionCollection *parent )
114 114
 				      "kfmclient move %p %t",
115 115
 				      i18n( "Delete (to Trash &Bin)" ),
116 116
 				      parent );
117
-    CHECK_PTR( cleanup );
117
+    TQ_CHECK_PTR( cleanup );
118 118
     cleanup->setWorksForDir     ( true  );
119 119
     cleanup->setWorksForFile    ( true  );
120 120
     cleanup->setWorksForDotEntry( false );
@@ -133,7 +133,7 @@ KStdCleanup::hardDelete( TDEActionCollection *parent )
133 133
 				      "rm -rf %p",
134 134
 				      i18n( "&Delete (no way to undelete!)" ),
135 135
 				      parent );
136
-    CHECK_PTR( cleanup );
136
+    TQ_CHECK_PTR( cleanup );
137 137
     cleanup->setWorksForDir     ( true  );
138 138
     cleanup->setWorksForFile    ( true  );
139 139
     cleanup->setWorksForDotEntry( false );

+ 2
- 2
kdirstat/ktreemaptile.cpp View File

@@ -148,7 +148,7 @@ KTreemapTile::createChildrenSimple( const TQRect &	rect,
148 148
 		childRect = TQRect( rect.x(), rect.y() + offset, rect.width(), childSize );
149 149
 
150 150
 	    KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, childDir );
151
-	    CHECK_PTR( tile );
151
+	    TQ_CHECK_PTR( tile );
152 152
 
153 153
 	    tile->cushionSurface().addRidge( dir,
154 154
 					     _cushionSurface.height() * _parentView->heightScaleFactor(),
@@ -320,7 +320,7 @@ KTreemapTile::layoutRow( const TQRect &		rect,
320 320
 		childRect = TQRect( rect.x(), rect.y() + offset, secondary, childSize );
321 321
 
322 322
 	    KTreemapTile * tile = new KTreemapTile( _parentView, this, *it, childRect, rowCushionSurface );
323
-	    CHECK_PTR( tile );
323
+	    TQ_CHECK_PTR( tile );
324 324
 
325 325
 	    tile->cushionSurface().addRidge( dir,
326 326
 					     rowCushionSurface.height() * _parentView->heightScaleFactor(),

+ 1
- 1
kdirstat/ktreemapview.cpp View File

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

Loading…
Cancel
Save