summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/cppeditor
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/plugins/cppeditor')
-rw-r--r--tools/designer/plugins/cppeditor/cppcompletion.cpp16
-rw-r--r--tools/designer/plugins/cppeditor/cppeditor.cpp10
-rw-r--r--tools/designer/plugins/cppeditor/cppeditor.h2
-rw-r--r--tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp26
-rw-r--r--tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp8
-rw-r--r--tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp2
-rw-r--r--tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp108
-rw-r--r--tools/designer/plugins/cppeditor/syntaxhighliter_cpp.h2
-rw-r--r--tools/designer/plugins/cppeditor/yyreg.cpp28
-rw-r--r--tools/designer/plugins/cppeditor/yyreg.h4
10 files changed, 103 insertions, 103 deletions
diff --git a/tools/designer/plugins/cppeditor/cppcompletion.cpp b/tools/designer/plugins/cppeditor/cppcompletion.cpp
index a5643b918..90b2fdbf7 100644
--- a/tools/designer/plugins/cppeditor/cppcompletion.cpp
+++ b/tools/designer/plugins/cppeditor/cppcompletion.cpp
@@ -46,7 +46,7 @@ CppEditorCompletion::CppEditorCompletion( Editor *e )
bool CppEditorCompletion::doObjectCompletion( const TQString &objName )
{
if ( !ths )
- return FALSE;
+ return false;
TQString object( objName );
int i = -1;
if ( ( i = object.findRev( "->" ) ) != -1 )
@@ -62,7 +62,7 @@ bool CppEditorCompletion::doObjectCompletion( const TQString &objName )
}
if ( !obj )
- return FALSE;
+ return false;
TQValueList<CompletionEntry> lst;
@@ -79,7 +79,7 @@ bool CppEditorCompletion::doObjectCompletion( const TQString &objName )
}
}
- TQStrList props = obj->metaObject()->propertyNames( TRUE );
+ TQStrList props = obj->metaObject()->propertyNames( true );
for ( TQPtrListIterator<char> pit( props ); pit.current(); ++pit ) {
TQString f( pit.current() );
TQChar c = f[ 0 ];
@@ -96,7 +96,7 @@ bool CppEditorCompletion::doObjectCompletion( const TQString &objName )
lst << ce;
}
- TQStrList slts = obj->metaObject()->slotNames( TRUE );
+ TQStrList slts = obj->metaObject()->slotNames( true );
for ( TQPtrListIterator<char> sit( slts ); sit.current(); ++sit ) {
TQString f( sit.current() );
f = f.left( f.find( "(" ) );
@@ -109,10 +109,10 @@ bool CppEditorCompletion::doObjectCompletion( const TQString &objName )
}
if ( lst.isEmpty() )
- return FALSE;
+ return false;
showCompletion( lst );
- return TRUE;
+ return true;
}
TQValueList<TQStringList> CppEditorCompletion::functionParameters( const TQString &expr, TQChar &separator,
@@ -185,7 +185,7 @@ TQValueList<TQStringList> CppEditorCompletion::functionParameters( const TQStrin
if ( !obj )
return TQValueList<TQStringList>();
- TQStrList slts = obj->metaObject()->slotNames( TRUE );
+ TQStrList slts = obj->metaObject()->slotNames( true );
for ( TQPtrListIterator<char> sit( slts ); sit.current(); ++sit ) {
TQString f( sit.current() );
f = f.left( f.find( "(" ) );
@@ -204,7 +204,7 @@ TQValueList<TQStringList> CppEditorCompletion::functionParameters( const TQStrin
const TQMetaProperty *prop =
obj->metaObject()->
- property( obj->metaObject()->findProperty( func[ 3 ].lower() + func.mid( 4 ), TRUE ), TRUE );
+ property( obj->metaObject()->findProperty( func[ 3 ].lower() + func.mid( 4 ), true ), true );
if ( prop ) {
TQValueList<TQStringList> l;
l << TQStringList( prop->type() );
diff --git a/tools/designer/plugins/cppeditor/cppeditor.cpp b/tools/designer/plugins/cppeditor/cppeditor.cpp
index 8b567ab20..70cffdde4 100644
--- a/tools/designer/plugins/cppeditor/cppeditor.cpp
+++ b/tools/designer/plugins/cppeditor/cppeditor.cpp
@@ -54,7 +54,7 @@ CppEditor::CppEditor( const TQString &fn, TQWidget *parent, const char *name, De
browser = new CppEditorBrowser( this );
int j = 0;
while ( SyntaxHighlighter_CPP::keywords[ j ] != TQString::null )
- completion->addCompletionEntry( SyntaxHighlighter_CPP::keywords[ j++ ], 0, FALSE );
+ completion->addCompletionEntry( SyntaxHighlighter_CPP::keywords[ j++ ], 0, false );
configChanged();
}
@@ -82,7 +82,7 @@ void CppEditor::configChanged()
} else {
if ( hScrollBarMode() != AlwaysOn ) {
TQTextFormatterBreakWords *f = new TQTextFormatterBreakWords;
- f->setWrapEnabled( FALSE );
+ f->setWrapEnabled( false );
document()->setFormatter( f );
setHScrollBarMode( AlwaysOn );
}
@@ -112,9 +112,9 @@ TQPopupMenu *CppEditor::createPopupMenu( const TQPoint &p )
int addimplid = m->insertItem( tr( "Add Include File (in Implementation)..." ), this, TQ_SLOT( addInclImpl() ) );
int addforid = m->insertItem( tr( "Add Forward Declaration..." ), this, TQ_SLOT( addForward() ) );
if ( !dIface->currentForm() ) {
- m->setItemEnabled( adddeclid, FALSE );
- m->setItemEnabled( addimplid, FALSE );
- m->setItemEnabled( addforid, FALSE );
+ m->setItemEnabled( adddeclid, false );
+ m->setItemEnabled( addimplid, false );
+ m->setItemEnabled( addforid, false );
}
return m;
}
diff --git a/tools/designer/plugins/cppeditor/cppeditor.h b/tools/designer/plugins/cppeditor/cppeditor.h
index 6df0d926c..647f175a3 100644
--- a/tools/designer/plugins/cppeditor/cppeditor.h
+++ b/tools/designer/plugins/cppeditor/cppeditor.h
@@ -54,7 +54,7 @@ public:
virtual EditorBrowser *browserManager() { return browser; }
void configChanged();
- bool supportsBreakPoints() const { return FALSE; }
+ bool supportsBreakPoints() const { return false; }
#if defined(Q_USING)
using TQTextEdit::createPopupMenu;
#endif
diff --git a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp
index 7b7747f3b..0880cb224 100644
--- a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp
+++ b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp
@@ -76,7 +76,7 @@ TQWidget *EditorInterfaceImpl::editor( bool readonly,
{
if ( !viewManager ) {
( (EditorInterfaceImpl*)this )->viewManager = new ViewManager( parent, 0 );
- ( (EditorInterfaceImpl*)this )->viewManager->showMarkerWidget( FALSE );
+ ( (EditorInterfaceImpl*)this )->viewManager->showMarkerWidget( false );
if ( iface )
iface->queryInterface( IID_Designer, (TQUnknownInterface**) &dIface );
CppEditor *e = new CppEditor( TQString::null, viewManager, "editor", dIface );
@@ -95,7 +95,7 @@ void EditorInterfaceImpl::setText( const TQString &txt )
CppEditor *e = (CppEditor*)viewManager->currentView();
disconnect( e, TQ_SIGNAL( modificationChanged( bool ) ), this, TQ_SLOT( modificationChanged( bool ) ) );
e->setText( txt );
- e->setModified( FALSE );
+ e->setModified( false );
connect( e, TQ_SIGNAL( modificationChanged( bool ) ), this, TQ_SLOT( modificationChanged( bool ) ) );
}
@@ -112,14 +112,14 @@ TQString EditorInterfaceImpl::text() const
bool EditorInterfaceImpl::isUndoAvailable() const
{
if ( !viewManager || !viewManager->currentView() )
- return FALSE;
+ return false;
return ( (CppEditor*)viewManager->currentView() )->isUndoAvailable();
}
bool EditorInterfaceImpl::isRedoAvailable() const
{
if ( !viewManager || !viewManager->currentView() )
- return FALSE;
+ return false;
return ( (CppEditor*)viewManager->currentView() )->isRedoAvailable();
}
@@ -168,7 +168,7 @@ void EditorInterfaceImpl::selectAll()
bool EditorInterfaceImpl::find( const TQString &expr, bool cs, bool wo, bool forward, bool startAtCursor )
{
if ( !viewManager || !viewManager->currentView() )
- return FALSE;
+ return false;
CppEditor *e = (CppEditor*)viewManager->currentView();
if ( startAtCursor )
return e->find( expr, cs, wo, forward );
@@ -180,9 +180,9 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace
bool forward, bool startAtCursor, bool replaceAll )
{
if ( !viewManager || !viewManager->currentView() )
- return FALSE;
+ return false;
CppEditor *e = (CppEditor*)viewManager->currentView();
- bool ok = FALSE;
+ bool ok = false;
if ( startAtCursor ) {
ok = e->find( find, cs, wo, forward );
} else {
@@ -192,7 +192,7 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace
if ( ok ) {
e->removeSelectedText();
- e->insert( replace, FALSE, FALSE );
+ e->insert( replace, false, false );
}
if ( !replaceAll || !ok ) {
@@ -204,16 +204,16 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace
return ok;
}
- bool ok2 = TRUE;
+ bool ok2 = true;
while ( ok2 ) {
ok2 = e->find( find, cs, wo, forward );
if ( ok2 ) {
e->removeSelectedText();
- e->insert( replace, FALSE, FALSE );
+ e->insert( replace, false, false );
}
}
- return TRUE;
+ return true;
}
void EditorInterfaceImpl::gotoLine( int line )
@@ -295,7 +295,7 @@ void EditorInterfaceImpl::setModified( bool m )
bool EditorInterfaceImpl::isModified() const
{
if ( !viewManager )
- return FALSE;
+ return false;
return ( (CppEditor*)viewManager->currentView() )->isModified();
}
@@ -320,7 +320,7 @@ void EditorInterfaceImpl::intervalChanged()
{
if ( !dIface )
return;
- updateTimer->start( 2000, TRUE );
+ updateTimer->start( 2000, true );
}
void EditorInterfaceImpl::update()
diff --git a/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp
index 1fbd63e0d..1739f38e0 100644
--- a/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp
+++ b/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp
@@ -170,10 +170,10 @@ TQString LanguageInterfaceImpl::createEmptyFunction()
bool LanguageInterfaceImpl::supports( Support s ) const
{
if ( s == ReturnType )
- return TRUE;
+ return true;
if ( s == ConnectionsToCustomSlots )
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}
TQStringList LanguageInterfaceImpl::fileFilterList() const
@@ -243,7 +243,7 @@ void LanguageInterfaceImpl::preferedExtensions( TQMap<TQString, TQString> &exten
TQStrList LanguageInterfaceImpl::signalNames( TQObject *obj ) const
{
TQStrList sigs;
- sigs = obj->metaObject()->signalNames( TRUE );
+ sigs = obj->metaObject()->signalNames( true );
sigs.remove( "destroyed()" );
return sigs;
}
diff --git a/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp
index fbf6f059d..87004bc44 100644
--- a/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp
+++ b/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp
@@ -88,7 +88,7 @@ SourceTemplateInterface::Source SourceTemplateInterfaceImpl::create( const TQStr
SourceTemplateInterface::Source src;
src.type = SourceTemplateInterface::Source::Invalid;
if ( templ == "C++ Main-File (main.cpp)" ) {
- CppMainFile dia( 0, 0, TRUE );
+ CppMainFile dia( 0, 0, true );
dia.setup( appIface );
if ( dia.exec() == TQDialog::Accepted ) {
DesignerInterface *dIface = 0;
diff --git a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
index 7607cf730..333843e0d 100644
--- a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
+++ b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
@@ -262,13 +262,13 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
int state = StateStandard;
if ( string->prev() ) {
if ( string->prev()->endState() == -1 )
- process( doc, string->prev(), 0, FALSE );
+ process( doc, string->prev(), 0, false );
state = string->prev()->endState();
}
int input = -1;
int i = 0;
- bool lastWasBackSlash = FALSE;
- bool makeLastStandard = FALSE;
+ bool lastWasBackSlash = false;
+ bool makeLastStandard = false;
ParagData *paragData = (ParagData*)string->extraData();
if ( paragData )
@@ -279,7 +279,7 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
TQString alphabeth = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
TQString mathChars = "xXeE";
TQString numbers = "0123456789";
- bool questionMark = FALSE;
+ bool questionMark = false;
TQChar lastChar;
for (;;) {
TQChar c = string->at( i )->c;
@@ -348,13 +348,13 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
if ( state == StateStandard && !questionMark && lastChar != ':' && nextChar != ':' ) {
for ( int j = 0; j < i; ++j ) {
if ( string->at( j )->format() == formatStandard )
- string->setFormat( j, 1, formatLabel, FALSE );
+ string->setFormat( j, 1, formatLabel, false );
}
}
} break;
default: {
if ( !questionMark && c == '?' )
- questionMark = TRUE;
+ questionMark = true;
if ( c.isLetter() || c == '_' )
input = InputAlpha;
else
@@ -373,19 +373,19 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
switch ( state ) {
case StateStandard: {
int len = buffer.length();
- string->setFormat( i, 1, formatStandard, FALSE );
+ string->setFormat( i, 1, formatStandard, false );
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
if ( buffer.length() > 0 && input != InputAlpha ) {
if ( buffer[ 0 ] == 'Q' ) {
- string->setFormat( i - buffer.length(), buffer.length(), formatType, FALSE );
+ string->setFormat( i - buffer.length(), buffer.length(), formatType, false );
} else {
TQMap<int, TQMap<TQString, int > >::Iterator it = wordMap->find( len );
if ( it != wordMap->end() ) {
TQMap<TQString, int >::Iterator it2 = ( *it ).find( buffer );
if ( it2 != ( *it ).end() )
- string->setFormat( i - buffer.length(), buffer.length(), format( ( *it2 ) ), FALSE );
+ string->setFormat( i - buffer.length(), buffer.length(), format( ( *it2 ) ), false );
}
}
buffer = TQString::null;
@@ -393,102 +393,102 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
} break;
case StateCommentStart1:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = TRUE;
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = true;
buffer = TQString::null;
break;
case StateCCommentStart2:
- string->setFormat( i - 1, 2, formatComment, FALSE );
- makeLastStandard = FALSE;
+ string->setFormat( i - 1, 2, formatComment, false );
+ makeLastStandard = false;
buffer = TQString::null;
break;
case StateCppCommentStart2:
- string->setFormat( i - 1, 2, formatComment, FALSE );
- makeLastStandard = FALSE;
+ string->setFormat( i - 1, 2, formatComment, false );
+ makeLastStandard = false;
buffer = TQString::null;
break;
case StateCComment:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatComment, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatComment, false );
buffer = TQString::null;
break;
case StateCppComment:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatComment, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatComment, false );
buffer = TQString::null;
break;
case StateCCommentEnd1:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatComment, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatComment, false );
buffer = TQString::null;
break;
case StateCCommentEnd2:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatComment, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatComment, false );
buffer = TQString::null;
break;
case StateStringStart:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatStandard, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatStandard, false );
buffer = TQString::null;
break;
case StateString:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatString, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatString, false );
buffer = TQString::null;
break;
case StateStringEnd:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatStandard, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatStandard, false );
buffer = TQString::null;
break;
case StateString2Start:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatStandard, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatStandard, false );
buffer = TQString::null;
break;
case StateString2:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatString, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatString, false );
buffer = TQString::null;
break;
case StateString2End:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatStandard, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatStandard, false );
buffer = TQString::null;
break;
case StateNumber:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatNumber, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatNumber, false );
buffer = TQString::null;
break;
case StatePreProcessor:
if ( makeLastStandard )
- string->setFormat( i - 1, 1, formatStandard, FALSE );
- makeLastStandard = FALSE;
- string->setFormat( i, 1, formatPreProcessor, FALSE );
+ string->setFormat( i - 1, 1, formatStandard, false );
+ makeLastStandard = false;
+ string->setFormat( i, 1, formatPreProcessor, false );
buffer = TQString::null;
break;
}
@@ -513,7 +513,7 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
string->setEndState( StateStandard );
}
- string->setFirstPreProcess( FALSE );
+ string->setFirstPreProcess( false );
TQTextParagraph *p = string->next();
if ( (!!oldEndState || !!string->endState()) && oldEndState != string->endState() &&
diff --git a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.h b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.h
index 45cd01350..b6e6e721b 100644
--- a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.h
+++ b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.h
@@ -53,7 +53,7 @@ public:
SyntaxHighlighter_CPP();
virtual ~SyntaxHighlighter_CPP();
- void process( TQTextDocument *doc, TQTextParagraph *string, int start, bool invalidate = TRUE );
+ void process( TQTextDocument *doc, TQTextParagraph *string, int start, bool invalidate = true );
void updateStyles( const TQMap<TQString, ConfigStyle> &styles );
static const char * const keywords[];
diff --git a/tools/designer/plugins/cppeditor/yyreg.cpp b/tools/designer/plugins/cppeditor/yyreg.cpp
index 1f06a02e7..0955e896c 100644
--- a/tools/designer/plugins/cppeditor/yyreg.cpp
+++ b/tools/designer/plugins/cppeditor/yyreg.cpp
@@ -159,7 +159,7 @@ static int getToken()
if ( yyCh == EOF ) {
break;
} else if ( isspace(yyCh) ) {
- bool metNL = FALSE;
+ bool metNL = false;
do {
metNL = ( metNL || yyCh == '\n' );
readChar();
@@ -294,8 +294,8 @@ static int getToken()
*/
readChar();
if ( yyCh == '*' ) {
- bool metAster = FALSE;
- bool metAsterSlash = FALSE;
+ bool metAster = false;
+ bool metAsterSlash = false;
readChar();
@@ -304,11 +304,11 @@ static int getToken()
break;
if ( yyCh == '*' )
- metAster = TRUE;
+ metAster = true;
else if ( metAster && yyCh == '/' )
- metAsterSlash = TRUE;
+ metAsterSlash = true;
else
- metAster = FALSE;
+ metAster = false;
readChar();
}
break;
@@ -406,8 +406,8 @@ TQString CppFunction::prototype() const
static int yyTok; // the current token
/*
- Returns TRUE if thingy is a constructor or a destructor; otherwise
- returns FALSE.
+ Returns true if thingy is a constructor or a destructor; otherwise
+ returns false.
*/
static bool isCtorOrDtor( const TQString& thingy )
{
@@ -512,7 +512,7 @@ static TQString matchDataType()
Alpha::Beta::Gamma::...::Omega.
*/
for ( ;; ) {
- bool modifierMet = FALSE;
+ bool modifierMet = false;
prependToType( &type, matchTemplateAngles() );
@@ -525,7 +525,7 @@ static TQString matchDataType()
prependToType( &type, yyLex );
yyTok = getToken();
if ( yyTok != Tok_const )
- modifierMet = TRUE;
+ modifierMet = true;
}
if ( yyTok == Tok_Tilde ) {
@@ -578,10 +578,10 @@ static CppFunction matchFunctionPrototype( bool stripParamNames )
TQString scopedName;
TQStringList params;
TQString qualifier;
- bool cnst = FALSE;
+ bool cnst = false;
if ( yyTok == Tok_const ) {
- cnst = TRUE;
+ cnst = true;
yyTok = getToken();
}
@@ -753,7 +753,7 @@ static void matchTranslationUnit( TQValueList<CppFunction> *flist )
// found a left brace
yyTok = getToken();
startBody = yyPos;
- CppFunction func = matchFunctionPrototype( FALSE );
+ CppFunction func = matchFunctionPrototype( false );
if ( !func.scopedName().isEmpty() ) {
TQString body = yyIn->mid( startBody, endBody - startBody );
setBody( &func, body );
@@ -794,7 +794,7 @@ TQString canonicalCppProto( const TQString& proto )
{
startTokenizer( proto );
yyTok = getToken();
- CppFunction func = matchFunctionPrototype( TRUE );
+ CppFunction func = matchFunctionPrototype( true );
stopTokenizer();
return func.prototype();
}
diff --git a/tools/designer/plugins/cppeditor/yyreg.h b/tools/designer/plugins/cppeditor/yyreg.h
index 5ac3fc2f3..fec27cda2 100644
--- a/tools/designer/plugins/cppeditor/yyreg.h
+++ b/tools/designer/plugins/cppeditor/yyreg.h
@@ -41,7 +41,7 @@
class CppFunction
{
public:
- CppFunction() : cnst( FALSE ), lineno1( 0 ), lineno2( 0 ) { }
+ CppFunction() : cnst( false ), lineno1( 0 ), lineno2( 0 ) { }
void setReturnType( const TQString& r ) { ret = r; }
void setScopedName( const TQString& n ) { nam = n; }
@@ -67,7 +67,7 @@ public:
int closingBraceLineNum() const { return lineno2; }
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
- bool operator==( const CppFunction& ) const { return FALSE; }
+ bool operator==( const CppFunction& ) const { return false; }
#endif
private: