summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqmime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqmime.cpp')
-rw-r--r--src/kernel/tqmime.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kernel/tqmime.cpp b/src/kernel/tqmime.cpp
index ba12e4c8e..4468082c1 100644
--- a/src/kernel/tqmime.cpp
+++ b/src/kernel/tqmime.cpp
@@ -128,8 +128,8 @@ TQMimeSource::~TQMimeSource()
/*!
- Returns TRUE if the object can provide the data in format \a
- mimeType; otherwise returns FALSE.
+ Returns true if the object can provide the data in format \a
+ mimeType; otherwise returns false.
If you inherit from TQMimeSource, for consistency reasons it is
better to implement the more abstract canDecode() functions such
@@ -140,10 +140,10 @@ bool TQMimeSource::provides(const char* mimeType) const
const char* fmt;
for (int i=0; (fmt = format(i)); i++) {
if ( !tqstricmp(mimeType,fmt) ) {
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
@@ -277,7 +277,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const
if ( fi.isReadable() ) {
// get the right mimetype
- TQString e = fi.extension(FALSE);
+ TQString e = fi.extension(false);
TQCString mimetype = "application/octet-stream";
const char* imgfmt;
if ( extensions.contains(e) )
@@ -381,7 +381,7 @@ const TQMimeSource* TQMimeSourceFactory::data(const TQString& abs_name) const
}
}
- static bool looping = FALSE;
+ static bool looping = false;
if ( !r && this == defaultFactory() ) {
// we found no mime-source and we are the default factory, so
// we know all the other installed mime-source factories, so
@@ -389,7 +389,7 @@ const TQMimeSource* TQMimeSourceFactory::data(const TQString& abs_name) const
if ( !looping ) {
// to avoid endless recustions, don't enter the loop below
// if data() got called from within the loop below
- looping = TRUE;
+ looping = true;
TQPtrListIterator<TQMimeSourceFactory> it( d->factories );
TQMimeSourceFactory *f;
while ( ( f = it.current() ) ) {
@@ -398,11 +398,11 @@ const TQMimeSource* TQMimeSourceFactory::data(const TQString& abs_name) const
continue;
r = (TQMimeSource*)f->data( abs_name );
if ( r ) {
- looping = FALSE;
+ looping = false;
return r;
}
}
- looping = FALSE;
+ looping = false;
}
} else if ( !r ) {
// we are not the default mime-source factory, so ask the
@@ -472,7 +472,7 @@ TQString TQMimeSourceFactory::makeAbsolute(const TQString& abs_or_rel_name, cons
return context;
TQFileInfo c( context );
if (!c.isDir()) {
- TQFileInfo r( c.dir(TRUE), abs_or_rel_name );
+ TQFileInfo r( c.dir(true), abs_or_rel_name );
return r.absFilePath();
} else {
TQDir d(context);