diff options
Diffstat (limited to 'tqt/tqextscintillalexerbash.cpp')
-rw-r--r-- | tqt/tqextscintillalexerbash.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tqt/tqextscintillalexerbash.cpp b/tqt/tqextscintillalexerbash.cpp index dcea90a..95727b7 100644 --- a/tqt/tqextscintillalexerbash.cpp +++ b/tqt/tqextscintillalexerbash.cpp @@ -33,8 +33,8 @@ // The ctor. TQextScintillaLexerBash::TQextScintillaLexerBash(TQObject *parent, const char *name) - : TQextScintillaLexer(parent,name), fold_comments(FALSE), - fold_compact(TRUE) + : TQextScintillaLexer(parent,name), fold_comments(false), + fold_compact(true) { } @@ -117,10 +117,10 @@ bool TQextScintillaLexerBash::eolFill(int style) const switch (style) { case SingleQuotedHereDocument: - return TRUE; + return true; } - return FALSE; + return false; } @@ -142,7 +142,7 @@ TQFont TQextScintillaLexerBash::font(int style) const case Keyword: case Operator: f = TQextScintillaLexer::font(style); - f.setBold(TRUE); + f.setBold(true); break; case DoubleQuotedString: @@ -286,24 +286,24 @@ void TQextScintillaLexerBash::refreshProperties() // Read properties from the settings. bool TQextScintillaLexerBash::readProperties(TQSettings &qs,const TQString &prefix) { - int rc = TRUE; + bool rc = true; bool ok, flag; // 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; return rc; } @@ -312,21 +312,21 @@ bool TQextScintillaLexerBash::readProperties(TQSettings &qs,const TQString &pref // Write properties to the settings. bool TQextScintillaLexerBash::writeProperties(TQSettings &qs,const TQString &prefix) const { - int rc = TRUE; + bool rc = true; // 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; return rc; } -// Return TRUE if comments can be folded. +// Return true if comments can be folded. bool TQextScintillaLexerBash::foldComments() const { return fold_comments; @@ -349,7 +349,7 @@ void TQextScintillaLexerBash::setCommentProp() } -// Return TRUE if folds are compact. +// Return true if folds are compact. bool TQextScintillaLexerBash::foldCompact() const { return fold_compact; |