summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexercpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexercpp.cpp')
-rw-r--r--tqt/tqextscintillalexercpp.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/tqt/tqextscintillalexercpp.cpp b/tqt/tqextscintillalexercpp.cpp
index be0eb63..1de27e3 100644
--- a/tqt/tqextscintillalexercpp.cpp
+++ b/tqt/tqextscintillalexercpp.cpp
@@ -33,9 +33,9 @@
// The ctor.
TQextScintillaLexerCPP::TQextScintillaLexerCPP(TQObject *parent,const char *name,
bool caseInsensitiveKeywords)
- : TQextScintillaLexer(parent,name), fold_atelse(FALSE),
- fold_comments(FALSE), fold_compact(TRUE), fold_preproc(TRUE),
- style_preproc(FALSE), nocase(caseInsensitiveKeywords)
+ : TQextScintillaLexer(parent,name), fold_atelse(false),
+ fold_comments(false), fold_compact(true), fold_preproc(true),
+ style_preproc(false), nocase(caseInsensitiveKeywords)
{
}
@@ -185,7 +185,7 @@ TQFont TQextScintillaLexerCPP::font(int style) const
case Keyword:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -327,48 +327,48 @@ void TQextScintillaLexerCPP::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerCPP::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold at else flag.
- flag = qs.readBoolEntry(prefix + "foldatelse",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldatelse",false,&ok);
if (ok)
fold_atelse = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold preprocessor flag.
- flag = qs.readBoolEntry(prefix + "foldpreprocessor",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldpreprocessor",true,&ok);
if (ok)
fold_preproc = flag;
else
- rc = FALSE;
+ rc = false;
// Read the style preprocessor flag.
- flag = qs.readBoolEntry(prefix + "stylepreprocessor",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "stylepreprocessor",false,&ok);
if (ok)
style_preproc = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -377,33 +377,33 @@ bool TQextScintillaLexerCPP::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerCPP::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold at else flag.
if (!qs.writeEntry(prefix + "foldatelse",fold_atelse))
- rc = FALSE;
+ rc = false;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the fold preprocessor flag.
if (!qs.writeEntry(prefix + "foldpreprocessor",fold_preproc))
- rc = FALSE;
+ rc = false;
// Write the style preprocessor flag.
if (!qs.writeEntry(prefix + "stylepreprocessor",style_preproc))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if else can be folded.
+// Return true if else can be folded.
bool TQextScintillaLexerCPP::foldAtElse() const
{
return fold_atelse;
@@ -426,7 +426,7 @@ void TQextScintillaLexerCPP::setAtElseProp()
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerCPP::foldComments() const
{
return fold_comments;
@@ -449,7 +449,7 @@ void TQextScintillaLexerCPP::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerCPP::foldCompact() const
{
return fold_compact;
@@ -472,7 +472,7 @@ void TQextScintillaLexerCPP::setCompactProp()
}
-// Return TRUE if preprocessor blocks can be folded.
+// Return true if preprocessor blocks can be folded.
bool TQextScintillaLexerCPP::foldPreprocessor() const
{
return fold_preproc;
@@ -495,7 +495,7 @@ void TQextScintillaLexerCPP::setPreprocProp()
}
-// Return TRUE if preprocessor lines are styled.
+// Return true if preprocessor lines are styled.
bool TQextScintillaLexerCPP::stylePreprocessor() const
{
return style_preproc;