summaryrefslogtreecommitdiffstats
path: root/nsplugins
diff options
context:
space:
mode:
Diffstat (limited to 'nsplugins')
-rw-r--r--nsplugins/nspluginloader.cpp2
-rw-r--r--nsplugins/pluginscan.cpp2
-rw-r--r--nsplugins/viewer/nsplugin.cpp8
-rw-r--r--nsplugins/viewer/qxteventloop.cpp18
-rw-r--r--nsplugins/viewer/viewer.cpp8
5 files changed, 19 insertions, 19 deletions
diff --git a/nsplugins/nspluginloader.cpp b/nsplugins/nspluginloader.cpp
index 274e81f69..80634f72a 100644
--- a/nsplugins/nspluginloader.cpp
+++ b/nsplugins/nspluginloader.cpp
@@ -272,7 +272,7 @@ void NSPluginLoader::scanPlugins()
continue;
}
- TQStringList desc = TQStringList::split(':', line, TRUE);
+ TQStringList desc = TQStringList::split(':', line, true);
TQString mime = desc[0].stripWhiteSpace();
TQStringList suffixes = TQStringList::split(',', desc[1].stripWhiteSpace());
if (!mime.isEmpty())
diff --git a/nsplugins/pluginscan.cpp b/nsplugins/pluginscan.cpp
index bd7a8fb89..21b6bb5a0 100644
--- a/nsplugins/pluginscan.cpp
+++ b/nsplugins/pluginscan.cpp
@@ -415,7 +415,7 @@ void scanDirectory( TQString dir, TQStringList &mimeInfoList,
}
// write into type cache
- TQStringList tokens = TQStringList::split(':', *type, TRUE);
+ TQStringList tokens = TQStringList::split(':', *type, true);
TQStringList::Iterator token;
token = tokens.begin();
cache << (*token).lower();
diff --git a/nsplugins/viewer/nsplugin.cpp b/nsplugins/viewer/nsplugin.cpp
index 1aec3dd44..5a873c45d 100644
--- a/nsplugins/viewer/nsplugin.cpp
+++ b/nsplugins/viewer/nsplugin.cpp
@@ -1574,7 +1574,7 @@ void NSPluginClass::destroyInstance( NSPluginInstance* inst )
{
// mark for destruction
_trash.append( inst );
- timer(); //_timer->start( 0, TRUE );
+ timer(); //_timer->start( 0, true );
}
/****************************************************************************/
@@ -1642,7 +1642,7 @@ void NSPluginStreamBase::inform()
// stream into temporary file (use lower() in case the
// filename as an upper case X in it)
_tempFile = new KTempFile;
- _tempFile->setAutoDelete( TRUE );
+ _tempFile->setAutoDelete( true );
_fileURL = _tempFile->name();
kdDebug() << "saving into " << _fileURL << endl;
}
@@ -1949,7 +1949,7 @@ void NSPluginStream::data(TDEIO::Job * job, const TQByteArray &data)
queue( data );
if ( !pump() ) {
_job->suspend();
- _resumeTimer->start( 100, TRUE );
+ _resumeTimer->start( 100, true );
}
}
@@ -1986,7 +1986,7 @@ void NSPluginStream::resume()
_job->resume();
} else {
kdDebug(1431) << "restart timer" << endl;
- _resumeTimer->start( 100, TRUE );
+ _resumeTimer->start( 100, true );
}
}
diff --git a/nsplugins/viewer/qxteventloop.cpp b/nsplugins/viewer/qxteventloop.cpp
index 1f112ba08..b8b4329b2 100644
--- a/nsplugins/viewer/qxteventloop.cpp
+++ b/nsplugins/viewer/qxteventloop.cpp
@@ -93,8 +93,8 @@ bool QXtEventLoop::redeliverEvent( XEvent *event )
{
// redeliver the event to Xt, NOT through Qt
if ( static_d->dispatchers[ event->type ]( event ) )
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}
@@ -108,7 +108,7 @@ XEvent* QXtEventLoop::lastEvent()
QXtEventLoopPrivate::QXtEventLoopPrivate()
: appContext(NULL), ownContext(NULL),
- activate_timers(FALSE), timerid(0)
+ activate_timers(false), timerid(0)
{
}
@@ -181,18 +181,18 @@ Boolean qmotif_event_dispatcher( XEvent *event )
case EnterNotify:
case LeaveNotify:
event->xcrossing.focus = False;
- delivered = FALSE;
+ delivered = false;
break;
case XKeyPress:
case XKeyRelease:
- delivered = TRUE;
+ delivered = true;
break;
case XFocusIn:
case XFocusOut:
- delivered = FALSE;
+ delivered = false;
break;
default:
- delivered = FALSE;
+ delivered = false;
break;
}
}
@@ -412,7 +412,7 @@ void QXtEventLoop::unregisterSocketNotifier( TQSocketNotifier *notifier )
*/
void qmotif_timeout_handler( XtPointer, XtIntervalId * )
{
- static_d->activate_timers = TRUE;
+ static_d->activate_timers = true;
static_d->timerid = 0;
}
@@ -461,7 +461,7 @@ bool QXtEventLoop::processEvents( ProcessEventsFlags flags )
if ( d->activate_timers ) {
nevents += activateTimers();
}
- d->activate_timers = FALSE;
+ d->activate_timers = false;
return ( (flags & WaitForMore) || ( pendingmask != 0 ) || nevents > 0 );
}
diff --git a/nsplugins/viewer/viewer.cpp b/nsplugins/viewer/viewer.cpp
index 6007e5b0e..488168b4d 100644
--- a/nsplugins/viewer/viewer.cpp
+++ b/nsplugins/viewer/viewer.cpp
@@ -152,7 +152,7 @@ bool qt_set_socket_handler( int sockfd, int type, TQObject *obj, bool enable )
#if defined(CHECK_RANGE)
tqWarning( "TQSocketNotifier: Internal error" );
#endif
- return FALSE;
+ return false;
}
XtPointer inpMask = 0;
@@ -161,7 +161,7 @@ bool qt_set_socket_handler( int sockfd, int type, TQObject *obj, bool enable )
case TQSocketNotifier::Read: inpMask = (XtPointer)XtInputReadMask; break;
case TQSocketNotifier::Write: inpMask = (XtPointer)XtInputWriteMask; break;
case TQSocketNotifier::Exception: inpMask = (XtPointer)XtInputExceptMask; break;
- default: return FALSE;
+ default: return false;
}
if (enable) {
@@ -197,13 +197,13 @@ bool qt_set_socket_handler( int sockfd, int type, TQObject *obj, bool enable )
while ( sn && !(sn->obj == obj && sn->fd == sockfd) )
sn = _notifiers[type].next();
if ( !sn ) // not found
- return FALSE;
+ return false;
XtRemoveInput( sn->id );
_notifiers[type].remove();
}
- return TRUE;
+ return true;
}
#endif